Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2
systemd-gtk
fix-swap-priority.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix-swap-priority.patch of Package systemd-gtk
Index: systemd-37/src/mount.c =================================================================== --- systemd-37.orig/src/mount.c +++ systemd-37/src/mount.c @@ -1485,7 +1485,7 @@ fail: return r; } -static int mount_find_pri(char *options) { +static int mount_find_pri(char *options, int *ret) { char *end, *pri; unsigned long r; @@ -1503,7 +1503,8 @@ static int mount_find_pri(char *options) if (end == pri || (*end != ',' && *end != 0)) return -EINVAL; - return (int) r; + *ret = (int) r; + return 1; } static int mount_load_etc_fstab(Manager *m) { @@ -1539,9 +1540,10 @@ static int mount_load_etc_fstab(Manager path_kill_slashes(where); if (streq(me->mnt_type, "swap")) { - int pri; + int r, pri = -1; - if ((pri = mount_find_pri(me->mnt_opts)) < 0) + r = mount_find_pri(me->mnt_opts,&pri); + if (r < 0) k = pri; else k = swap_add_one(m,
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor