summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/inp.c2
-rw-r--r--tests/symlinks6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/inp.c b/src/inp.c
index dbc3f5d..7b80d71 100644
--- a/src/inp.c
+++ b/src/inp.c
@@ -198,7 +198,7 @@ get_input_file (char const *filename, char const *outname, mode_t mode)
else if (! ((S_ISREG (mode) || S_ISLNK (mode))
&& (mode & S_IFMT) == (instat.st_mode & S_IFMT)))
{
- say ("File %s is not a %s -- can't patch\n",
+ say ("File %s is not a %s -- refusing to patch\n",
quotearg (filename),
S_ISLNK (mode) ? "symbolic link" : "regular file");
return false;
diff --git a/tests/symlinks b/tests/symlinks
index f21a76d..5f7595d 100644
--- a/tests/symlinks
+++ b/tests/symlinks
@@ -26,7 +26,7 @@ echo one > f
ncheck 'ln -s f l'
check 'patch < create.diff || echo "Status: $?"' <<EOF
-File l is not a regular file -- can't patch
+File l is not a regular file -- refusing to patch
1 out of 1 hunk ignored -- saving rejects to file l.rej
Status: 1
EOF
@@ -50,7 +50,7 @@ cat > modify.diff <<EOF
EOF
check 'patch < modify.diff || echo "Status: $?"' <<EOF
-File l is not a regular file -- can't patch
+File l is not a regular file -- refusing to patch
1 out of 1 hunk ignored -- saving rejects to file l.rej
Status: 1
EOF
@@ -68,7 +68,7 @@ cat > delete.diff <<EOF
EOF
check 'patch < delete.diff || echo "Status: $?"' <<EOF
-File l is not a regular file -- can't patch
+File l is not a regular file -- refusing to patch
1 out of 1 hunk ignored -- saving rejects to file l.rej
Status: 1
EOF