Extract tarballs with "o" option (tar xof), to behave reasonably when run
authorPeter Eisentraut <peter_e@gmx.net>
Fri, 26 Jun 2009 06:40:57 +0000 (06:40 +0000)
committerPeter Eisentraut <peter_e@gmx.net>
Fri, 26 Jun 2009 06:40:57 +0000 (06:40 +0000)
as root, as would usually be the case during make install.

per bug #4883

doc/Makefile

index 004218afaf2fb6857143222663c298a388257807..db7c66a251ae82a47260029229b4bd797b801b71 100644 (file)
@@ -53,7 +53,7 @@ man1/.timestamp: man7/.timestamp
        @echo timestamp >$@
 
 man7/.timestamp: man.tar.gz
-       gzip -d -c $< | $(TAR) xf -
+       gzip -d -c $< | $(TAR) xof -
 ifneq ($(sqlmansectnum),7)
        for file in man1/*.1; do \
          mv $$file $$file.bak && \
@@ -76,7 +76,7 @@ endif # found_man
 
 install: all installdirs
 ifdef found_html
-       gzip -d -c $(srcdir)/postgres.tar.gz | ( cd $(DESTDIR)$(htmldir)/html && $(TAR) xf - )
+       gzip -d -c $(srcdir)/postgres.tar.gz | ( cd $(DESTDIR)$(htmldir)/html && $(TAR) xof - )
 endif
 ifdef found_man
        for file in man1/*.1 man$(sqlmansectnum)/*.$(sqlmansect) ; do \