From: Kern Sibbald Date: Thu, 17 May 2007 11:54:12 +0000 (+0000) Subject: More tweaks to the .mod command X-Git-Tag: Release-7.0.0~6322 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=25495c71b8376a01cf66adb1e5516bba581a7d99;p=bacula%2Fbacula More tweaks to the .mod command git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4810 91ce42f0-d328-0410-95d8-f526ca767f89 --- 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;