summaryrefslogtreecommitdiffstats
path: root/sys-utils/readprofile.c
diff options
context:
space:
mode:
authorKarel Zak2012-10-23 15:10:26 +0200
committerKarel Zak2012-10-23 15:10:26 +0200
commit8f3b568cd7c7f618ad22ef7a3d07c3db28dfa77e (patch)
tree9c2ff7c7b71125397118cfdb900f8c9245e1c994 /sys-utils/readprofile.c
parentmisc: make readlink() usage more robust (diff)
downloadkernel-qcow2-util-linux-8f3b568cd7c7f618ad22ef7a3d07c3db28dfa77e.tar.gz
kernel-qcow2-util-linux-8f3b568cd7c7f618ad22ef7a3d07c3db28dfa77e.tar.xz
kernel-qcow2-util-linux-8f3b568cd7c7f618ad22ef7a3d07c3db28dfa77e.zip
fdisk: fix compiler warning [-Wpointer-arith] and floating point exception
Signed-off-by: Karel Zak <kzak@redhat.com>
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);