Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F161705880
D57398.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
971 B
Referenced Files
None
Subscribers
None
D57398.diff
View Options
diff --git a/usr.bin/xinstall/tests/install_test.sh b/usr.bin/xinstall/tests/install_test.sh
--- a/usr.bin/xinstall/tests/install_test.sh
+++ b/usr.bin/xinstall/tests/install_test.sh
@@ -27,8 +27,11 @@
atf_test_case incompatible_opts
incompatible_opts_body() {
+ printf 'test\n123\r456\r\n789\0z' >testf
atf_check -s not-exit:0 -e match:"specified together" \
install -s -d dir1
+ atf_check -s not-exit:0 -e match:"specified together" \
+ install -s -l s testf copyf
}
atf_test_case copy_to_empty
diff --git a/usr.bin/xinstall/xinstall.c b/usr.bin/xinstall/xinstall.c
--- a/usr.bin/xinstall/xinstall.c
+++ b/usr.bin/xinstall/xinstall.c
@@ -293,6 +293,12 @@
usage();
}
+ /* Cannot strip if creating a link. */
+ if (dostrip && dolink) {
+ warnx("-l and -s may not be specified together");
+ usage();
+ }
+
/*
* Default permissions based on whether we're a directory or not, since
* an +X may mean that we need to set the execute bit.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jul 7, 3:10 AM (6 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34765819
Default Alt Text
D57398.diff (971 B)
Attached To
Mode
D57398: xinstall: Do not allow -l and -s together
Attached
Detach File
Event Timeline
Log In to Comment