Fix a typo in the -O parsing code that caused a crash when the -O option
is used without supplying "sowner:sgroup". Obtained from: NetBSD (jdolecek) PR: 37171
This commit is contained in:
parent
e2c9ac698c
commit
81b431dba3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=113396
@ -30,6 +30,7 @@
|
|||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $Id: ctx.c,v 1.24 2002/04/13 14:35:28 bp Exp $
|
* $Id: ctx.c,v 1.24 2002/04/13 14:35:28 bp Exp $
|
||||||
|
* $FreeBSD$
|
||||||
*/
|
*/
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/sysctl.h>
|
#include <sys/sysctl.h>
|
||||||
@ -408,7 +409,7 @@ smb_ctx_opt(struct smb_ctx *ctx, int opt, const char *arg)
|
|||||||
&ctx->ct_sh.ioc_group);
|
&ctx->ct_sh.ioc_group);
|
||||||
}
|
}
|
||||||
if (*p && error == 0) {
|
if (*p && error == 0) {
|
||||||
error = smb_parse_owner(cp, &ctx->ct_ssn.ioc_owner,
|
error = smb_parse_owner(p, &ctx->ct_ssn.ioc_owner,
|
||||||
&ctx->ct_ssn.ioc_group);
|
&ctx->ct_ssn.ioc_group);
|
||||||
}
|
}
|
||||||
free(p);
|
free(p);
|
||||||
|
Loading…
Reference in New Issue
Block a user