MFV r353608: 10165 libzpool: passing argument 1 to restrict-qualified parameter
illumos/illumos-gate@f91fcf59ac
f91fcf59ac
https://www.illumos.org/issues/10165
Author: Toomas Soome <tsoome@me.com>
MFC after: 10 days
This commit is contained in:
commit
b399ca755a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=353609
@ -2196,7 +2196,10 @@ dsl_get_mountpoint(dsl_dataset_t *ds, const char *dsname, char *value,
|
||||
return (error);
|
||||
}
|
||||
|
||||
/* Process the dsname and source to find the full mountpoint string */
|
||||
/*
|
||||
* Process the dsname and source to find the full mountpoint string.
|
||||
* Can be skipped for 'legacy' or 'none'.
|
||||
*/
|
||||
if (value[0] == '/') {
|
||||
char *buf = kmem_alloc(ZAP_MAXVALUELEN, KM_SLEEP);
|
||||
char *root = buf;
|
||||
@ -2247,10 +2250,8 @@ dsl_get_mountpoint(dsl_dataset_t *ds, const char *dsname, char *value,
|
||||
relpath);
|
||||
}
|
||||
kmem_free(buf, ZAP_MAXVALUELEN);
|
||||
} else {
|
||||
/* 'legacy' or 'none' */
|
||||
(void) snprintf(value, ZAP_MAXVALUELEN, "%s", value);
|
||||
}
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user