Skip to content

Commit 755bf63

Browse files
committed
bash: Replace 'cp -d' command with POSIX 'cp -P'
Comment from Eric Blake: > We don't have any hard-links in our source. GNU cp -d is the same as > cp -P --preserve=links, but --preserve=links only matters for hard > links, so losing it doesn't hurt our usage. I'm inclined to just go > with cp -P unconditionally rather than needing the configure.ac > logic for $(CP_D). Fixes: libguestfs/libguestfs#183 Reported-by: Mohamed Akram Thanks: Eric Blake (cherry picked from libguestfs commit e49d65a5fd07e40260e800c0c262dad7e367b2f6)
1 parent 6fe0b91 commit 755bf63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bash/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ all-local: $(scripts) $(symlinks)
7474

7575
install-data-local:
7676
$(mkdir_p) $(DESTDIR)$(bashcompletiondir)
77-
cp -d $(scripts) $(symlinks) $(DESTDIR)$(bashcompletiondir)
77+
cp -P $(scripts) $(symlinks) $(DESTDIR)$(bashcompletiondir)
7878

7979
clean-local:
8080
-test $(srcdir) != $(builddir) && rm -f $(scripts)

0 commit comments

Comments
 (0)