diff options
author | Dubiousjim <dubiousjim@gmail.com> | 2013-07-05 00:21:11 -0400 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-07-08 14:47:39 +0000 |
commit | 3417b45a1b1777c51c307117cdf5016565563571 (patch) | |
tree | a84f4af4fe0e75a07f1f5b02d94c1015d84dec61 | |
parent | 607124c60c1e5b65dbe78d65269a75cc980e421c (diff) | |
download | abuild-3417b45a1b1777c51c307117cdf5016565563571.tar.gz abuild-3417b45a1b1777c51c307117cdf5016565563571.tar.bz2 abuild-3417b45a1b1777c51c307117cdf5016565563571.tar.xz abuild-3417b45a1b1777c51c307117cdf5016565563571.zip |
abuild-sudo, abuild-tar: cosmetic changes
-rw-r--r-- | abuild-sudo.c | 4 | ||||
-rw-r--r-- | abuild-tar.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/abuild-sudo.c b/abuild-sudo.c index 3ba48e7..66f212a 100644 --- a/abuild-sudo.c +++ b/abuild-sudo.c @@ -68,7 +68,7 @@ int main(int argc, const char *argv[]) errx(1, "Not a member of group %s\n", ABUILD_GROUP); cmd = strrchr(argv[0], '-'); - if (cmd == NULL) + if (cmd == NULL) errx(1, "Calling command has no '-'"); cmd++; @@ -77,7 +77,7 @@ int main(int argc, const char *argv[]) errx(1, "%s: Not a valid subcommand", cmd); argv[0] = path; - /* set our uid to root soo bbsuid --install works */ + /* set our uid to root so bbsuid --install works */ setuid(0); execv(path, (char * const*)argv); perror(path); diff --git a/abuild-tar.c b/abuild-tar.c index 1b6e2fb..4a88882 100644 --- a/abuild-tar.c +++ b/abuild-tar.c @@ -39,7 +39,7 @@ struct tar_header { char devmajor[8]; /* 329-336 */ char devminor[8]; /* 337-344 */ char prefix[155]; /* 345-499 */ - char padding[12]; /* 500-512 */ + char padding[12]; /* 500-511 */ }; #define GET_OCTAL(s) get_octal(s, sizeof(s)) |