1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

ctdb-scripts: Add a 'rm' stub so statd-callout tests work correctly

statd-callout tries to remove global files from /var/lib/nfs/statd and
this causes errors in tests.  Add an rm stub that ignores attempts to
remove these files but invokes /bin/rm for anything else.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Pair-programmed-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Martin Schwenke <martin@meltin.net>
This commit is contained in:
Amitay Isaacs 2015-03-05 13:10:32 +11:00 committed by Martin Schwenke
parent 15a702accf
commit 956e51707d

View File

@ -0,0 +1,6 @@
#!/bin/sh
# Make statd-callout happy
case "$*" in
*/var/lib/nfs/statd/sm*) : ;;
*) exec /bin/rm "$@" ;;
esac