From 25495c71b8376a01cf66adb1e5516bba581a7d99 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Thu, 17 May 2007 11:54:12 +0000 Subject: [PATCH] More tweaks to the .mod command git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4810 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/dird/ua_run.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bacula/src/dird/ua_run.c b/bacula/src/dird/ua_run.c index 017226873b..7d5844cf86 100644 --- a/bacula/src/dird/ua_run.c +++ b/bacula/src/dird/ua_run.c @@ -244,7 +244,8 @@ try_again: goto bail_out; } - if (ua->cmd[0] == '.' && strncasecmp(ua->cmd, ".mod ", 5) == 0) { + if (strncasecmp(ua->cmd, ".mod ", 5) == 0 || + (strncasecmp(ua->cmd, "mod ", 4) == 0 && strlen(ua->cmd) > 6)) { Dmsg1(000, "got: %s\n", ua->cmd); parse_ua_args(ua); rc.mod = true; -- 2.39.5