summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2004-07-28 23:37:21 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2004-07-28 23:37:21 +0000
commit65c2eab95598ae7f42cca0d48f6f4b0d8e2ccfb0 (patch)
tree17f744be88330a01cf16bed32f6501b5da339798 /src
parenta830ae0cbb20ae106d267bb458b08e8189e70840 (diff)
downloadcoreutils-65c2eab95598ae7f42cca0d48f6f4b0d8e2ccfb0.tar.xz
(main): int -> bool when appropriate.
Diffstat (limited to 'src')
-rw-r--r--src/chown.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/chown.c b/src/chown.c
index 47a8e95f3..9179ac914 100644
--- a/src/chown.c
+++ b/src/chown.c
@@ -175,7 +175,7 @@ main (int argc, char **argv)
int dereference = -1;
struct Chown_option chopt;
- int fail;
+ bool ok;
int optc;
initialize_main (&argc, &argv);
@@ -320,7 +320,7 @@ main (int argc, char **argv)
optind++;
}
- if (chopt.recurse && preserve_root)
+ if (chopt.recurse & preserve_root)
{
static struct dev_ino dev_ino_buf;
chopt.root_dev_ino = get_root_dev_ino (&dev_ino_buf);
@@ -329,11 +329,11 @@ main (int argc, char **argv)
quote ("/"));
}
- fail = chown_files (argv + optind, bit_flags,
- uid, gid,
- required_uid, required_gid, &chopt);
+ ok = chown_files (argv + optind, bit_flags,
+ uid, gid,
+ required_uid, required_gid, &chopt);
chopt_free (&chopt);
- exit (fail ? EXIT_FAILURE : EXIT_SUCCESS);
+ exit (ok ? EXIT_SUCCESS : EXIT_FAILURE);
}