linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Use utime rather than utimes
@ 2010-03-10  4:36 Jon Ringle
  2010-03-10  8:34 ` Kay Sievers
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Jon Ringle @ 2010-03-10  4:36 UTC (permalink / raw)
  To: linux-hotplug

uclibc does not have lutimes and legacy function utimes should be replaced
with utime

Signed-off-by: Jon Ringle <jon@ringle.org>
---
 udev/udev-node.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/udev/udev-node.c b/udev/udev-node.c
index a70c147..f90567d 100644
--- a/udev/udev-node.c
+++ b/udev/udev-node.c
@@ -57,7 +57,7 @@ int udev_node_mknod(struct udev_device *dev, const char *file, dev_t devnum, mod
 			preserve = 1;
 			udev_selinux_lsetfilecon(udev, file, mode);
 			/* update time stamp when we re-use the node, like on media change events */
-			utimes(file, NULL);
+			utime(file, NULL);
 		} else {
 			char file_tmp[UTIL_PATH_SIZE + sizeof(TMP_FILE_EXT)];
 
@@ -178,7 +178,7 @@ static int node_symlink(struct udev *udev, const char *node, const char *slink)
 					info(udev, "preserve already existing symlink '%s' to '%s'\n",
 					     slink, target);
 					udev_selinux_lsetfilecon(udev, slink, S_IFLNK);
-					lutimes(slink, NULL);
+					utime(target, NULL);
 					goto exit;
 				}
 			}
-- 
1.7.0.rc2


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-03-10 15:32 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-10  4:36 [PATCH] Use utime rather than utimes Jon Ringle
2010-03-10  8:34 ` Kay Sievers
2010-03-10  9:22 ` Martin Pitt
2010-03-10 11:35 ` Kay Sievers
2010-03-10 11:47 ` Kay Sievers
2010-03-10 13:56 ` Scott James Remnant
2010-03-10 15:32 ` Jon Ringle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).