chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
scsi_id: fix typo in help text
[elogind.git]
/
udevstart.c
diff --git
a/udevstart.c
b/udevstart.c
index d0a1ded2be069cf16d0f8931a840f272875702d2..a381c411a80f437157ed38a622723f52ba531041 100644
(file)
--- a/
udevstart.c
+++ b/
udevstart.c
@@
-1,13
+1,9
@@
/*
/*
- *
udevstart.c
+ *
quick and dirty way to populate a /dev directory
*
*
+ * Copyright (C) 2004 Harald Hoyer <harald@redhat.com>
* Copyright (C) 2004 Greg Kroah-Hartman <greg@kroah.com>
* Copyright (C) 2004 Greg Kroah-Hartman <greg@kroah.com>
- * Copyright (C) 2004 Kay Sievers <kay@vrfy.org>
- *
- * Quick and dirty way to populate a /dev with udev if your system
- * does not have access to a shell. Based originally on a patch
- * from:
- * Harald Hoyer <harald@redhat.com>
+ * Copyright (C) 2004-2006 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 the
*
* 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 the
@@
-20,7
+16,7
@@
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
- *
675 Mass Ave, Cambridge, MA 02139
, USA.
+ *
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
, USA.
*
*/
*
*/
@@
-124,7
+120,7
@@
static int add_device(const char *devpath)
if (dev == NULL)
return -1;
if (dev == NULL)
return -1;
- udev = udev_device_init();
+ udev = udev_device_init(
NULL
);
if (udev == NULL)
return -1;
if (udev == NULL)
return -1;
@@
-371,6
+367,7
@@
int main(int argc, char *argv[], char *envp[])
udev_rules_cleanup(&rules);
sysfs_cleanup();
udev_rules_cleanup(&rules);
sysfs_cleanup();
+ selinux_exit();
logging_close();
return 0;
}
logging_close();
return 0;
}