[OE-core] [PATCH] makedevs: Do not return error if the fifo exisits
Khem Raj
raj.khem at gmail.com
Tue Oct 1 17:07:09 UTC 2013
On Oct 1, 2013, at 9:56 AM, Phil Blundell <pb at pbcl.net> wrote:
> On Tue, 2013-10-01 at 09:51 -0700, Saul Wold wrote:
>> static void add_new_fifo(char *name, char *path, unsigned long uid,
>> unsigned long gid, unsigned long mode)
>> {
>> - if (mknod(path, mode, 0))
>> + if (mknod(path, mode, 0) && errno != EEXIST)
>> error_msg_and_die("%s: file can not be created with mknod!", path);
>
> Will this do the right thing if the mode has changed from the old to the
> new versions?
and it wont catch dangling symlinks anymore
>
> p.
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
More information about the Openembedded-core
mailing list