diff options
Diffstat (limited to 'utils')
-rw-r--r-- | utils/Makefile.am | 15 | ||||
-rw-r--r-- | utils/gdmmktemp.c (renamed from utils/gdmmkstemp.c) | 8 |
2 files changed, 15 insertions, 8 deletions
diff --git a/utils/Makefile.am b/utils/Makefile.am index d047fb50..65524478 100644 --- a/utils/Makefile.am +++ b/utils/Makefile.am @@ -21,9 +21,12 @@ INCLUDES = \ sbin_PROGRAMS = \ @GDMASKPASS@ \ - @GDMOPEN@ \ - gdmmkstemp -EXTRA_PROGRAMS = gdmaskpass gdmopen gdmmkstemp + @GDMOPEN@ + +bin_PROGRAMS = \ + gdmmktemp + +EXTRA_PROGRAMS = gdmaskpass gdmopen gdmaskpass_SOURCES = \ gdmaskpass.c @@ -31,8 +34,8 @@ gdmaskpass_SOURCES = \ gdmopen_SOURCES = \ gdmopen.c -gdmmkstemp_SOURCES = \ - gdmmkstemp.c +gdmmktemp_SOURCES = \ + gdmmktemp.c gdmaskpass_LDADD = \ $(GNOME_LIBDIR) \ @@ -44,6 +47,6 @@ gdmopen_LDADD = \ $(GNOME_LIBDIR) \ $(INTLLIBS) -gdmmkstemp_LDADD = \ +gdmmktemp_LDADD = \ $(GNOME_LIBDIR) \ $(INTLLIBS) diff --git a/utils/gdmmkstemp.c b/utils/gdmmktemp.c index a93c8e01..dba23650 100644 --- a/utils/gdmmkstemp.c +++ b/utils/gdmmktemp.c @@ -13,6 +13,10 @@ #include "config.h" #include <stdio.h> #include <stdlib.h> +#include <sys/types.h> +#include <sys/stat.h> +#include <unistd.h> + int main (int argc, char *argv[]) @@ -24,9 +28,9 @@ main (int argc, char *argv[]) if (i < 0) return 1; - fchown (i, 0600); + fchmod (i, 0600); printf ("%s\n", template); - close (i) + close (i); return 0; } |