summaryrefslogtreecommitdiff
path: root/src/udev/udev-event.c
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2013-01-27 21:46:36 +0100
committerKay Sievers <kay@vrfy.org>2013-01-27 21:46:36 +0100
commit22582bb2cbe85b40de5f561589e0468dac769515 (patch)
treeb051535729d9890599dab7d112eea3541748c1ee /src/udev/udev-event.c
parentd970bd6d39f808b29a804050747c0883fcc2784b (diff)
udev: set default rules permissions only at "add" events
Diffstat (limited to 'src/udev/udev-event.c')
-rw-r--r--src/udev/udev-event.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/udev/udev-event.c b/src/udev/udev-event.c
index 8c8b058df7..ef9fc61c64 100644
--- a/src/udev/udev-event.c
+++ b/src/udev/udev-event.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2010 Kay Sievers <kay@vrfy.org>
+ * Copyright (C) 2003-2013 Kay Sievers <kay@vrfy.org>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -861,7 +861,8 @@ int udev_event_execute_rules(struct udev_event *event, struct udev_rules *rules,
}
}
- udev_node_add(dev, event->mode, event->uid, event->gid);
+ udev_node_add(dev, event->owner_set || event->group_set || event->mode_set,
+ event->mode, event->uid, event->gid);
}
/* preserve old, or get new initialization timestamp */