change log for rtems (2010-06-08)
Chris Johns
chrisj at rtems.org
Tue Jun 8 13:22:44 UTC 2010
On 8/06/10 11:11 PM, rtems-vc at rtems.org wrote:
> +
> +int
> +rtems_mkdir(const char *path, mode_t mode)
> +{
> + int success = 0;
Should this be set to 1 and errno to ENOMEM ?
> + char *dup_path = strdup(path);
> +
> + if (dup_path != NULL) {
> + success = build(dup_path, mode);
> + free(dup_path);
> + }
> +
> + return success != 0 ? 0 : -1;
> +}
My reading is a failed strdup has no error returned. Is this expected ?
Chris
More information about the vc
mailing list