summaryrefslogtreecommitdiffstats
path: root/plugins/sudoers/regress/cvtsudoers/test39.sh
blob: 8ece02695224c27e15722442ef45970c974639b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
#
# Test handling of a backslash at EOF with no trailing newline.
#
# If compiled with address sanitizer, cvtsudoers will crash without the
# fix in ceaf706ab74b from https://github.com/sudo-project/sudo/pull/196.
#

: ${CVTSUDOERS=cvtsudoers}

printf 'dn: cn= Manager\\' | \
    $CVTSUDOERS -c "" -b "ou=SUDOers,dc=sudo,dc=ws" -i ldif -f sudoers