mirror of
https://github.com/troglobit/finit.git
synced 2026-11-08 16:11:10 +00:00
bootmisc: The getgroup() API returns int not gid_t
Must use int to check for error code (-1) from getgroup() API. Found by Coverity Scan. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
b1d709ba22
commit
9fc1f50678
1 file changed
+1
-1
+1
-1
@@ -41,7 +41,7 @@ static void create(char *path, mode_t mode, uid_t uid, gid_t gid)
|
|||||||
*/
|
*/
|
||||||
static void setup(void *UNUSED(arg))
|
static void setup(void *UNUSED(arg))
|
||||||
{
|
{
|
||||||
gid_t gid;
|
int gid;
|
||||||
|
|
||||||
_d("Setting up FHS structure in /var ...");
|
_d("Setting up FHS structure in /var ...");
|
||||||
makedir("/var/cache", 0755);
|
makedir("/var/cache", 0755);
|
||||||
|
|||||||
Reference in new issue
Block a user