[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
rpl_unlink sets errno to EPERM on malloc failure
From: |
Tim Rühsen |
Subject: |
rpl_unlink sets errno to EPERM on malloc failure |
Date: |
Fri, 20 Mar 2020 12:54:13 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 |
Is this EPERM intended ? If yes, there should be a comment.
lib/unlink.c (rpl_unlink):
/* Trailing NUL will overwrite the trailing slash. */
char *short_name = malloc (len);
if (!short_name)
{
errno = EPERM;
return -1;
}
Regards, Tim
signature.asc
Description: OpenPGP digital signature
- rpl_unlink sets errno to EPERM on malloc failure,
Tim Rühsen <=