strongswan.org
Wiki/Project Management
Downloads
Gitweb
projects
/
strongswan.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6f1929
)
starter: ignore return value of sete[gu]id(), now having warn_unused_result
author
Martin Willi
<martin@revosec.ch>
Tue, 18 Jun 2013 06:54:10 +0000
(08:54 +0200)
committer
Martin Willi
<martin@revosec.ch>
Tue, 18 Jun 2013 06:54:10 +0000
(08:54 +0200)
src/starter/starter.c
patch
|
blob
|
history
diff --git
a/src/starter/starter.c
b/src/starter/starter.c
index
917e52d
..
a9436fd
100644
(file)
--- a/
src/starter/starter.c
+++ b/
src/starter/starter.c
@@
-291,11
+291,11
@@
static void generate_selfcert()
}
}
#endif
-
setegid(gid
);
-
seteuid(uid
);
+
ignore_result(setegid(gid)
);
+
ignore_result(seteuid(uid)
);
ignore_result(system("ipsec scepclient --out pkcs1 --out cert-self --quiet"));
-
seteuid(0
);
-
setegid(0
);
+
ignore_result(seteuid(0)
);
+
ignore_result(setegid(0)
);
/* ipsec.secrets is root readable only */
oldmask = umask(0066);
@@
-898,4
+898,3
@@
int main (int argc, char **argv)
}
exit(LSB_RC_SUCCESS);
}
-