Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37040785
en ru br
ALT Linux repositórios
S:2.8.9-alt1.pre.1.1
5.0: 2.8.6-alt7.rel.2
4.1: 2.8.6-alt3.rel.2
4.0: 2.8.6-alt2.rel.2.1
3.0: 2.8.5-alt4.dev.16.1

Group :: Rede/WWW
RPM: lynx

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: lynx-tmpdir.patch
Download


diff -urN lynx2-8-3/src/LYMain.c lynx2-8-3-chmou/src/LYMain.c
--- src/LYMain.c	Sat Aug 28 23:04:13 1999
+++ src/LYMain.c	Mon Dec  6 17:19:35 1999
@@ -969,6 +969,7 @@
     struct stat dir_info;
     char filename[LY_MAXPATH];
     BOOL LYGetStdinArgs = FALSE;
+	struct stat st;
 
 #ifdef _WINDOWS
     WSADATA WSAData;
@@ -1034,6 +1035,21 @@
 #endif
 	tildeExpand(&lynx_temp_space, TRUE);
 
+
+    if (stat(lynx_temp_space, &st) < 0) {
+	    if (errno = ENOENT) {
+		    printf("Creating dir %s\n", lynx_temp_space);
+		    mkdir(lynx_temp_space, 0700);
+	    }
+    }
+
+    if (stat(lynx_temp_space, &st) < 0) {
+	    if (errno = ENOENT) {
+		    printf("Can't create %s, let's try /tmp/\n", lynx_temp_space);
+		    lynx_temp_space = "/tmp/";
+	    }
+    }
+    
     if ((cp = strstr(lynx_temp_space, "$USER")) != NULL) {
 	char *cp1;
 
diff -urN lynx2-8-3/userdefs.h lynx2-8-3-chmou/userdefs.h
--- userdefs.h	Mon Dec  6 17:09:40 1999
+++ userdefs.h	Mon Dec  6 18:38:24 1999
@@ -337,7 +337,7 @@
  * the "TMPDIR" (unix), or "TEMP" or "TMP" (Windows,DOS,OS/2)
  * variable.
  */
-#define TEMP_SPACE "/tmp/"
+#define TEMP_SPACE "~/tmp/"
 
 /********************************
  * Comment this line out to let the user enter his/her email address
 
 
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