]> Dogcows Code - chaz/tar/blobdiff - src/tar.c
Fix Solaris bug where chmod fails if we don't have PRIV_SYS_LINKDIR
[chaz/tar] / src / tar.c
index e10b80431c1c60ba5f7fa2ee04b9e0f07310970a..31537eb23fad6121f810ff80aa3b4ed25b4ccb5c 100644 (file)
--- a/src/tar.c
+++ b/src/tar.c
@@ -50,6 +50,7 @@
 #include <version-etc.h>
 #include <xstrtol.h>
 #include <stdopen.h>
+#include <priv-set.h>
 
 /* Local declarations.  */
 
@@ -2459,6 +2460,9 @@ main (int argc, char **argv)
   /* System V fork+wait does not work if SIGCHLD is ignored.  */
   signal (SIGCHLD, SIG_DFL);
 
+  /* Try to disable the ability to unlink a directory.  */
+  priv_set_remove_linkdir ();
+  
   /* Decode options.  */
 
   decode_options (argc, argv);
This page took 0.022035 seconds and 4 git commands to generate.