mirror of
https://github.com/troglobit/finit.git
synced 2026-10-02 05:52:48 +07: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
-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))
|
||||
{
|
||||
gid_t gid;
|
||||
int gid;
|
||||
|
||||
_d("Setting up FHS structure in /var ...");
|
||||
makedir("/var/cache", 0755);
|
||||
|
||||
Reference in New Issue
Block a user