[vlc-devel] [PATCH] rootwrap: fix warning
Lyndon Brown
jnqnfe at gmail.com
Mon Sep 28 01:36:27 CEST 2020
attached. preview:
From: Lyndon Brown <jnqnfe at gmail.com>
Date: Sat, 30 Mar 2019 02:43:45 +0000
Subject: rootwrap: fix warning
diff --git a/bin/rootwrap.c b/bin/rootwrap.c
index 0258773b90..3de054e73a 100644
--- a/bin/rootwrap.c
+++ b/bin/rootwrap.c
@@ -248,7 +248,8 @@ int main (int argc, char *argv[])
fputs("Cannot determine unprivileged user for VLC!\n", stderr);
exit (1);
}
- setuid (uid);
+ if (!setuid (uid))
+ exit (1);
if (!setuid (0)) /* sanity check: we cannot get root back */
exit (1);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rootwrap.patch
Type: text/x-patch
Size: 605 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20200928/79db3582/attachment.bin>
More information about the vlc-devel
mailing list