forked from enlightenment/efl
parent
d47e3516da
commit
961244f70a
|
@ -293,7 +293,7 @@ eeze_udev_find_by_type(Eeze_Udev_Type etype, const char *name)
|
||||||
{
|
{
|
||||||
int devcheck;
|
int devcheck;
|
||||||
|
|
||||||
devcheck = open(udev_device_get_devnode(device), O_EXCL);
|
devcheck = open(udev_device_get_devnode(device), O_RDONLY | O_EXCL);
|
||||||
if (errno)
|
if (errno)
|
||||||
{
|
{
|
||||||
if (devcheck >= 0) close(devcheck);
|
if (devcheck >= 0) close(devcheck);
|
||||||
|
|
|
@ -141,7 +141,7 @@ _get_syspath_from_watch(void *data, Ecore_Fd_Handler * fd_handler)
|
||||||
{
|
{
|
||||||
int devcheck;
|
int devcheck;
|
||||||
|
|
||||||
devcheck = open(udev_device_get_devnode(device), O_EXCL);
|
devcheck = open(udev_device_get_devnode(device), O_RDONLY | O_EXCL);
|
||||||
if ((devcheck < 0) || errno) goto error;
|
if ((devcheck < 0) || errno) goto error;
|
||||||
close(devcheck);
|
close(devcheck);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue