diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 2000-06-19 22:42:30 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 2000-06-19 22:42:30 +0000 |
commit | 86c00b230b2edb5f31c3feff302c91fb0000bf26 (patch) | |
tree | 5ef86a945bb5ac53b3fcf29334cfaa7539d48fe5 /usr.bin/tcfs/tcfsrun.c | |
parent | 1abef89558453935167b734f3edda32d8a73ab1a (diff) |
KNF
Diffstat (limited to 'usr.bin/tcfs/tcfsrun.c')
-rw-r--r-- | usr.bin/tcfs/tcfsrun.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/usr.bin/tcfs/tcfsrun.c b/usr.bin/tcfs/tcfsrun.c index 8090efd32c1..03da06748b1 100644 --- a/usr.bin/tcfs/tcfsrun.c +++ b/usr.bin/tcfs/tcfsrun.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcfsrun.c,v 1.4 2000/06/19 20:35:48 fgsch Exp $ */ +/* $OpenBSD: tcfsrun.c,v 1.5 2000/06/19 22:42:29 aaron Exp $ */ /* * Transparent Cryptographic File System (TCFS) for NetBSD @@ -37,18 +37,18 @@ run_main(int argc, char *argv[], char *envp[]) uid_t uid; pid_t pid; int es; - int havefspath = 0,havecmd = 0; + int havefspath = 0, havecmd = 0; uid = getuid(); - while ((x = getopt(argc,argv,"p:f:")) != EOF) { + while ((x = getopt(argc, argv, "p:f:")) != EOF) { switch(x) { case 'p': strlcpy(fspath, optarg, sizeof(fspath)); havefspath = 1; break; case 'f': - es = tcfs_getfspath(optarg,fspath); + es = tcfs_getfspath(optarg, fspath); if (!es) { fprintf(stderr, "filesystem label not found!\n"); @@ -66,7 +66,7 @@ run_main(int argc, char *argv[], char *envp[]) } if (!havefspath) { - es = tcfs_getfspath("default",fspath); + es = tcfs_getfspath("default", fspath); if (!es) exit(1); } @@ -81,7 +81,7 @@ run_main(int argc, char *argv[], char *envp[]) pid = getpid(); if (tcfs_proc_enable(fspath, uid, pid, key) != -1) { setuid(uid); - execve(cmd,argv + optind, envp); + execve(cmd, argv + optind, envp); } fprintf(stderr, "Operation failed\n"); @@ -90,7 +90,7 @@ run_main(int argc, char *argv[], char *envp[]) wait(0); - if (tcfs_proc_disable(fspath,uid,pid) == -1) { + if (tcfs_proc_disable(fspath, uid, pid) == -1) { fprintf (stderr, "Problems removing process key\n"); exit(1); } |