Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37830175
en ru br
ALT Linux repositórios
S:2.38.0.23.0e1ef6779a-alt1
5.0: 2.9-alt5
4.1: 2.5.1-alt4.M41.2
4.0: 2.5-alt4.M40.2
3.0: 2.3.5-alt5

Outros repositórios

Group :: Sistema/Base
RPM: glibc

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: glibc-2.3.5-alt-tmpfile.patch
Download


# Allow tmpfile(3) to use $TMPDIR.
diff -uprk.orig glibc-2.3.5.orig/glibc-compat/oldtmpfile.c glibc-2.3.5/glibc-compat/oldtmpfile.c
--- glibc-2.3.5.orig/glibc-compat/oldtmpfile.c	2004-09-22 21:20:48 +0000
+++ glibc-2.3.5/glibc-compat/oldtmpfile.c	2005-05-08 22:05:09 +0000
@@ -32,7 +32,7 @@ __old_tmpfile (void)
   int fd;
   FILE *f;
 
-  if (__path_search (buf, FILENAME_MAX, NULL, "tmpf", 0))
+  if (__path_search (buf, FILENAME_MAX, NULL, "tmpf", 1))
     return NULL;
   fd = __gen_tempname (buf, 1, 0);
   if (fd < 0)
diff -uprk.orig glibc-2.3.5.orig/libio/oldtmpfile.c glibc-2.3.5/libio/oldtmpfile.c
--- glibc-2.3.5.orig/libio/oldtmpfile.c	2004-03-10 09:28:25 +0000
+++ glibc-2.3.5/libio/oldtmpfile.c	2004-03-10 09:28:25 +0000
@@ -36,7 +36,7 @@ __old_tmpfile (void)
   int fd;
   FILE *f;
 
-  if (__path_search (buf, FILENAME_MAX, NULL, "tmpf", 0))
+  if (__path_search (buf, FILENAME_MAX, NULL, "tmpf", 1))
     return NULL;
   fd = __gen_tempname (buf, __GT_FILE);
   if (fd < 0)
diff -uprk.orig glibc-2.3.5.orig/sysdeps/generic/tmpfile.c glibc-2.3.5/sysdeps/generic/tmpfile.c
--- glibc-2.3.5.orig/sysdeps/generic/tmpfile.c	2003-09-02 07:13:21 +0000
+++ glibc-2.3.5/sysdeps/generic/tmpfile.c	2003-09-02 07:13:21 +0000
@@ -43,7 +43,7 @@ tmpfile (void)
   int fd;
   FILE *f;
 
-  if (__path_search (buf, FILENAME_MAX, NULL, "tmpf", 0))
+  if (__path_search (buf, FILENAME_MAX, NULL, "tmpf", 1))
     return NULL;
   fd = __gen_tempname (buf, GEN_THIS);
   if (fd < 0)
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009