(construct_output_path): Don't create output directory unless no_archive.
authordrepper <drepper>
Fri, 19 Apr 2002 00:47:02 +0000 (00:47 +0000)
committerdrepper <drepper>
Fri, 19 Apr 2002 00:47:02 +0000 (00:47 +0000)
locale/programs/localedef.c

index ba8572e..37b52b0 100644 (file)
@@ -461,7 +461,7 @@ construct_output_path (char *path)
 
   errno = 0;
 
-  if (euidaccess (result, W_OK) == -1)
+  if (no_archive && euidaccess (result, W_OK) == -1)
     /* Perhaps the directory does not exist now.  Try to create it.  */
     if (errno == ENOENT)
       {