Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/shar make sure a sed failure in the generated archiv...
details: https://anonhg.NetBSD.org/src/rev/21b92f0055b4
branches: trunk
changeset: 372857:21b92f0055b4
user: ginsbach <ginsbach%NetBSD.org@localhost>
date: Sat Dec 31 03:33:53 2022 +0000
description:
make sure a sed failure in the generated archive stops execution
Code from Dave Sainty in PR bin/11107 (similar in FreeBSD)
diffstat:
usr.bin/shar/shar.sh | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (20 lines):
diff -r d61bdb44fe78 -r 21b92f0055b4 usr.bin/shar/shar.sh
--- a/usr.bin/shar/shar.sh Fri Dec 30 21:40:20 2022 +0000
+++ b/usr.bin/shar/shar.sh Sat Dec 31 03:33:53 2022 +0000
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $NetBSD: shar.sh,v 1.3 2005/06/30 02:36:35 perry Exp $
+# $NetBSD: shar.sh,v 1.4 2022/12/31 03:33:53 ginsbach Exp $
#
# Copyright (c) 1990, 1993
# The Regents of the University of California. All rights reserved.
@@ -62,7 +62,7 @@
else
echo "echo x - $i"
echo "sed 's/^X//' >$i << 'END-of-$i'"
- sed 's/^/X/' $i
+ sed 's/^/X/' $i || exit 1
echo "END-of-$i"
fi
done
Home |
Main Index |
Thread Index |
Old Index