[OE-core] [PATCH] makedevs: Do not return error if the fifo exisits
Phil Blundell
pb at pbcl.net
Tue Oct 1 16:56:15 UTC 2013
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?
p.
More information about the Openembedded-core
mailing list