[BACK]Return to cdio.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / cdio

Diff for /src/usr.bin/cdio/cdio.c between version 1.52 and 1.53

version 1.52, 2006/06/06 23:22:28 version 1.53, 2006/06/15 23:49:58
Line 301 
Line 301 
                         if (argv[0] == NULL)                          if (argv[0] == NULL)
                                 usage();                                  usage();
                         tr->file = argv[0];                          tr->file = argv[0];
                         if (stat(tr->file, &sb) != 0) {                          tr->fd = open(tr->file, O_RDONLY, 0640);
                                 warn("cannot stat file %s",tr->file);                          if (tr->fd == -1)
                                 return (-1);                                  err(1, "cannot open file %s", tr->file);
                         }                          if (fstat(tr->fd, &sb) == -1)
                                   err(1, "cannot stat file %s", tr->file);
                         tr->sz = sb.st_size;                          tr->sz = sb.st_size;
                         if (tr->type == 'a')                          if (tr->type == 'a')
                                 tr->sz -= WAVHDRLEN;                                  tr->sz -= WAVHDRLEN;
                         if (SLIST_EMPTY(&tracks))                          if (SLIST_EMPTY(&tracks))
                                 SLIST_INSERT_HEAD(&tracks,tr,track_list);                                  SLIST_INSERT_HEAD(&tracks, tr, track_list);
                         else                          else
                                 SLIST_INSERT_AFTER(cur_track,tr,track_list);                                  SLIST_INSERT_AFTER(cur_track, tr, track_list);
                         cur_track = tr;                          cur_track = tr;
                 }                  }
                 if (!open_cd(cdname, 1))                  if (!open_cd(cdname, 1))

Legend:
Removed from v.1.52  
changed lines
  Added in v.1.53