From e7511e1955c250e3e59b2a32b0c29374816b47dd Mon Sep 17 00:00:00 2001 From: Walter Lozano Date: Fri, 26 Nov 2021 11:33:06 -0300 Subject: Use short options for cmp In order to be consistent with other uses of cmp and to improve compatiblity with other implementations, like busybox one, change long options to short ones. Signed-off-by: Walter Lozano --- cmdline/apt-key.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cmdline') diff --git a/cmdline/apt-key.in b/cmdline/apt-key.in index 137546de3..3c83a8b3d 100644 --- a/cmdline/apt-key.in +++ b/cmdline/apt-key.in @@ -314,11 +314,11 @@ is_supported_keyring() { local FILEEXT="${1##*.}" if [ "$FILEEXT" = 'gpg' ]; then # 0x98, 0x99 and 0xC6 via octal as hex isn't supported by dashs printf - if printf '\231' | cmp --silent --bytes=1 - "$1"; then + if printf '\231' | cmp -s -n 1 - "$1"; then true - elif printf '\230' | cmp --silent --bytes=1 - "$1"; then + elif printf '\230' | cmp -s -n 1 - "$1"; then true - elif printf '\306' | cmp --silent --bytes=1 - "$1"; then + elif printf '\306' | cmp -s -n 1 - "$1"; then true else apt_warn "The key(s) in the keyring $1 are ignored as the file has an unsupported filetype." -- cgit v1.2.3-70-g09d2