diff options
| author | Joerg Wunsch <joerg@FreeBSD.org> | 1995-10-22 14:04:37 +0000 |
|---|---|---|
| committer | Joerg Wunsch <joerg@FreeBSD.org> | 1995-10-22 14:04:37 +0000 |
| commit | 215568d2a2ba0f0041d80fb69f60b5bcc64bb21c (patch) | |
| tree | bcf7036fe42c6460094c5b6d1532e62010855635 /gnu/usr.bin/mkisofs/write.c | |
| parent | d6df5fd25f8d87fde44a715c1850a9a048fcf638 (diff) | |
Notes
Diffstat (limited to 'gnu/usr.bin/mkisofs/write.c')
| -rw-r--r-- | gnu/usr.bin/mkisofs/write.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/gnu/usr.bin/mkisofs/write.c b/gnu/usr.bin/mkisofs/write.c index 3a98a3907624..64b4a3ce593c 100644 --- a/gnu/usr.bin/mkisofs/write.c +++ b/gnu/usr.bin/mkisofs/write.c @@ -376,11 +376,7 @@ static void FDECL1(assign_file_addresses, struct directory *, dpnt){ dwpnt->name = NULL; } else { dwpnt->table = NULL; - strcpy(whole_path, s_entry->filedir->whole_name); -#ifndef VMS - if(strlen(whole_path)) strcat(whole_path, "/"); -#endif - strcat(whole_path, s_entry->name); + strcpy(whole_path, s_entry->whole_name); dwpnt->name = strdup(whole_path); }; dwpnt->next = NULL; @@ -407,8 +403,15 @@ static void FDECL1(assign_file_addresses, struct directory *, dpnt){ fprintf(stderr,"Reported file size is %d extents\n", s_entry->size); exit(1); }; - } else - set_733(s_entry->isorec.extent, 0); + } else { + /* + * This is for zero-length files. If we leave the extent 0, + * then we get screwed, because many readers simply drop files + * that have an extent of zero. Thus we leave the size 0, + * and just assign the extent number. + */ + set_733(s_entry->isorec.extent, last_extent); + } }; }; }; |
