diff --git a/helpers.c b/helpers.c index 3c628894..7757eab8 100644 --- a/helpers.c +++ b/helpers.c @@ -126,30 +126,6 @@ int atonum(char *str) return val; } -/** - * tempfile - A secure tmpfile() replacement - * - * This is the secure replacement for tmpfile() that does not exist in GLIBC. - * The function uses mkstemp() for security. - * - * Returns: - * An open %FILE pointer, or %NULL on error. - */ -FILE *tempfile(void) -{ - int fd; - mode_t oldmask; - char template[] = "/tmp/finit.XXXXXX"; - - oldmask = umask(0077); - fd = mkstemp(template); - umask(oldmask); - if (-1 == fd) - return NULL; - - return fdopen(fd, "rw"); -} - static int encode(int lvl) { if (!lvl) return 0; diff --git a/helpers.h b/helpers.h index 9d374d90..3c589fe1 100644 --- a/helpers.h +++ b/helpers.h @@ -69,7 +69,6 @@ int makepath (char *path); void ifconfig (char *ifname, char *addr, char *mask, int up); int atonum (char *str); -FILE *tempfile (void); void runlevel_set (int pre, int now); int runlevel_get (void); diff --git a/libite b/libite index 84c3667e..c5434a4b 160000 --- a/libite +++ b/libite @@ -1 +1 @@ -Subproject commit 84c3667ebad84756f879522d86aac96b3e7f47c5 +Subproject commit c5434a4bc0197263063f2ff53c803928743231ba