diff options
Diffstat (limited to 'tar.c')
-rw-r--r-- | tar.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -4,7 +4,7 @@ | |||
4 | * | 4 | * |
5 | * Note, that as of BusyBox-0.43, tar has been completely rewritten from the | 5 | * Note, that as of BusyBox-0.43, tar has been completely rewritten from the |
6 | * ground up. It still has remnents of the old code lying about, but it is | 6 | * ground up. It still has remnents of the old code lying about, but it is |
7 | * very different now (i.e. cleaner, less global variables, etc) | 7 | * very different now (i.e., cleaner, less global variables, etc.) |
8 | * | 8 | * |
9 | * Copyright (C) 1999,2000,2001 by Lineo, inc. | 9 | * Copyright (C) 1999,2000,2001 by Lineo, inc. |
10 | * Written by Erik Andersen <andersen@lineo.com>, <andersee@debian.org> | 10 | * Written by Erik Andersen <andersen@lineo.com>, <andersee@debian.org> |
@@ -121,7 +121,7 @@ struct TarInfo | |||
121 | gid_t gid; /* Numeric GID */ | 121 | gid_t gid; /* Numeric GID */ |
122 | size_t size; /* Size of file */ | 122 | size_t size; /* Size of file */ |
123 | time_t mtime; /* Last-modified time */ | 123 | time_t mtime; /* Last-modified time */ |
124 | enum TarFileType type; /* Regular, directory, link, etc */ | 124 | enum TarFileType type; /* Regular, directory, link, etc. */ |
125 | char * linkname; /* Name for symbolic and hard links */ | 125 | char * linkname; /* Name for symbolic and hard links */ |
126 | long devmajor; /* Major number for special device */ | 126 | long devmajor; /* Major number for special device */ |
127 | long devminor; /* Minor number for special device */ | 127 | long devminor; /* Minor number for special device */ |
@@ -303,7 +303,7 @@ static void | |||
303 | fixUpPermissions(TarInfo *header) | 303 | fixUpPermissions(TarInfo *header) |
304 | { | 304 | { |
305 | struct utimbuf t; | 305 | struct utimbuf t; |
306 | /* Now set permissions etc for the new file */ | 306 | /* Now set permissions etc. for the new file */ |
307 | chown(header->name, header->uid, header->gid); | 307 | chown(header->name, header->uid, header->gid); |
308 | chmod(header->name, header->mode); | 308 | chmod(header->name, header->mode); |
309 | /* Reset the time */ | 309 | /* Reset the time */ |
@@ -418,7 +418,7 @@ tarExtractHardLink(TarInfo *header, int extractFlag, int tostdoutFlag) | |||
418 | return( FALSE); | 418 | return( FALSE); |
419 | } | 419 | } |
420 | 420 | ||
421 | /* Now set permissions etc for the new directory */ | 421 | /* Now set permissions etc. for the new directory */ |
422 | fixUpPermissions(header); | 422 | fixUpPermissions(header); |
423 | return( TRUE); | 423 | return( TRUE); |
424 | } | 424 | } |
@@ -471,7 +471,7 @@ tarExtractSpecial(TarInfo *header, int extractFlag, int tostdoutFlag) | |||
471 | } | 471 | } |
472 | } | 472 | } |
473 | 473 | ||
474 | /* Now set permissions etc for the new directory */ | 474 | /* Now set permissions etc. for the new directory */ |
475 | fixUpPermissions(header); | 475 | fixUpPermissions(header); |
476 | return( TRUE); | 476 | return( TRUE); |
477 | } | 477 | } |
@@ -952,7 +952,7 @@ writeTarHeader(struct TarBallInfo *tbInfo, const char *header_name, | |||
952 | return ( FALSE); | 952 | return ( FALSE); |
953 | } | 953 | } |
954 | 954 | ||
955 | /* Calculate and store the checksum (i.e. the sum of all of the bytes of | 955 | /* Calculate and store the checksum (i.e., the sum of all of the bytes of |
956 | * the header). The checksum field must be filled with blanks for the | 956 | * the header). The checksum field must be filled with blanks for the |
957 | * calculation. The checksum field is formatted differently from the | 957 | * calculation. The checksum field is formatted differently from the |
958 | * other fields: it has [6] digits, a null, then a space -- rather than | 958 | * other fields: it has [6] digits, a null, then a space -- rather than |