Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37759632
en ru br
ALT Linux repositórios
S:7.94-alt1
5.0: 4.65-alt1.1
4.1: 4.20-alt3
4.0: 4.11-alt1.1
3.0: 3.81-alt1

Group :: Monitoramento
RPM: nmap

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: nmap-4.01-alt-dot-dir.patch
Download


diff -upk.orig nmap-4.01.orig/nmap.cc nmap-4.01/nmap.cc
--- nmap-4.01.orig/nmap.cc	2006-03-04 00:51:56 +0000
+++ nmap-4.01/nmap.cc	2006-03-04 00:52:53 +0000
@@ -2152,8 +2152,6 @@ int nmap_fetchfile(char *filename_return
   int res;
   int foundsomething = 0;
   struct passwd *pw;
-  char dot_buffer[512];
-  static int warningcount = 0;
 
   /* First we try [--datadir]/file, then $NMAPDIR/file
      next we try ~user/nmap/file
@@ -2225,6 +2223,9 @@ int nmap_fetchfile(char *filename_return
 	foundsomething = 1;
     }
   }
+#ifdef ENABLE_DOT_DIR_OPEN
+  char dot_buffer[512];
+  static int warningcount = 0;
   if (foundsomething && (*filename_returned != '.')) {    
     res = snprintf(dot_buffer, sizeof(dot_buffer), "./%s", file);
     if (res > 0 && res < bufferlen) {
@@ -2246,6 +2247,7 @@ int nmap_fetchfile(char *filename_return
 	foundsomething = 1;
     }
   }
+#endif /* ENABLE_DOT_DIR_OPEN */
 
   if (!foundsomething) {
     filename_returned[0] = '\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