- Fix check for XEN build in glibc_post_upgrade

OBS-URL: https://build.opensuse.org/package/show/Base:System/glibc?expand=0&rev=281
This commit is contained in:
Andreas Schwab 2013-05-07 10:21:12 +00:00 committed by Git OBS Bridge
parent 8c2acf16c2
commit 4eab886af5
4 changed files with 26 additions and 1 deletions

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Tue May 7 10:00:00 UTC 2013 - schwab@suse.de
- Fix check for XEN build in glibc_post_upgrade
-------------------------------------------------------------------
Sun Apr 14 02:41:52 UTC 2013 - crrodriguez@opensuse.org
- Do not order nscd after syslog.target
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Mar 4 14:16:43 UTC 2013 - schwab@suse.de Mon Mar 4 14:16:43 UTC 2013 - schwab@suse.de

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Tue May 7 10:00:00 UTC 2013 - schwab@suse.de
- Fix check for XEN build in glibc_post_upgrade
-------------------------------------------------------------------
Sun Apr 14 02:41:52 UTC 2013 - crrodriguez@opensuse.org
- Do not order nscd after syslog.target
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Mar 4 14:16:43 UTC 2013 - schwab@suse.de Mon Mar 4 14:16:43 UTC 2013 - schwab@suse.de

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue May 7 10:00:00 UTC 2013 - schwab@suse.de
- Fix check for XEN build in glibc_post_upgrade
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Apr 14 02:41:52 UTC 2013 - crrodriguez@opensuse.org Sun Apr 14 02:41:52 UTC 2013 - crrodriguez@opensuse.org

View File

@ -140,8 +140,8 @@ main (void)
timeout and leave /etc/initrunlvl. */ timeout and leave /etc/initrunlvl. */
if (readlink ("/proc/1/exe", initpath, 256) <= 0 || if (readlink ("/proc/1/exe", initpath, 256) <= 0 ||
readlink ("/proc/1/root", initpath, 256) <= 0 || readlink ("/proc/1/root", initpath, 256) <= 0 ||
access ("/.buildenv", F_OK) == 0 || /* XEN build */
stat ("/proc/1/root", &init_root) < 0 || stat ("/proc/1/root", &init_root) < 0 ||
stat ("/.buildenv", &init_root) < 0 || /* XEN build */
stat ("/", &root) < 0 || stat ("/", &root) < 0 ||
init_root.st_dev != root.st_dev || init_root.st_ino != root.st_ino) init_root.st_dev != root.st_dev || init_root.st_ino != root.st_ino)
_exit (0); _exit (0);