Skip to content
Snippets Groups Projects
Commit 3417b45a authored by Jim Pryor's avatar Jim Pryor Committed by Natanael Copa
Browse files

abuild-sudo, abuild-tar: cosmetic changes

parent 607124c6
No related branches found
No related tags found
No related merge requests found
...@@ -68,7 +68,7 @@ int main(int argc, const char *argv[]) ...@@ -68,7 +68,7 @@ int main(int argc, const char *argv[])
errx(1, "Not a member of group %s\n", ABUILD_GROUP); errx(1, "Not a member of group %s\n", ABUILD_GROUP);
cmd = strrchr(argv[0], '-'); cmd = strrchr(argv[0], '-');
if (cmd == NULL) if (cmd == NULL)
errx(1, "Calling command has no '-'"); errx(1, "Calling command has no '-'");
cmd++; cmd++;
...@@ -77,7 +77,7 @@ int main(int argc, const char *argv[]) ...@@ -77,7 +77,7 @@ int main(int argc, const char *argv[])
errx(1, "%s: Not a valid subcommand", cmd); errx(1, "%s: Not a valid subcommand", cmd);
argv[0] = path; argv[0] = path;
/* set our uid to root soo bbsuid --install works */ /* set our uid to root so bbsuid --install works */
setuid(0); setuid(0);
execv(path, (char * const*)argv); execv(path, (char * const*)argv);
perror(path); perror(path);
......
...@@ -39,7 +39,7 @@ struct tar_header { ...@@ -39,7 +39,7 @@ struct tar_header {
char devmajor[8]; /* 329-336 */ char devmajor[8]; /* 329-336 */
char devminor[8]; /* 337-344 */ char devminor[8]; /* 337-344 */
char prefix[155]; /* 345-499 */ char prefix[155]; /* 345-499 */
char padding[12]; /* 500-512 */ char padding[12]; /* 500-511 */
}; };
#define GET_OCTAL(s) get_octal(s, sizeof(s)) #define GET_OCTAL(s) get_octal(s, sizeof(s))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment