mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
s3:net registry: ignore WERR_BADFILE when --force is given in deletekey[_recursive]
Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Sun Jan 30 14:53:13 CET 2011 on sn-devel-104
This commit is contained in:
parent
b1f800a0d1
commit
e57d4c41d7
@ -277,7 +277,9 @@ static int net_registry_deletekey_internal(struct net_context *c, int argc,
|
||||
} else {
|
||||
werr = reg_deletekey(hivekey, subkeyname);
|
||||
}
|
||||
if (!W_ERROR_IS_OK(werr)) {
|
||||
if (!W_ERROR_IS_OK(werr) &&
|
||||
!(c->opt_force && W_ERROR_EQUAL(werr, WERR_BADFILE)))
|
||||
{
|
||||
d_fprintf(stderr, "reg_deletekey %s: %s\n", _("failed"),
|
||||
win_errstr(werr));
|
||||
goto done;
|
||||
|
Loading…
x
Reference in New Issue
Block a user