summaryrefslogtreecommitdiffstats
path: root/sys-utils/readprofile.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys-utils/readprofile.c')
-rw-r--r--sys-utils/readprofile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/readprofile.c b/sys-utils/readprofile.c
index 04d9c7375..5b77c4956 100644
--- a/sys-utils/readprofile.c
+++ b/sys-utils/readprofile.c
@@ -229,7 +229,7 @@ int main(int argc, char **argv)
to_write = 1;
}
/* try to become root, just in case */
- setuid(0);
+ ignore_result( setuid(0) );
fd = open(defaultpro, O_WRONLY);
if (fd < 0)
err(EXIT_FAILURE, "%s", defaultpro);