bug-gnulib
[Top][All Lists]
Advanced

[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

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]