Index: git/src/mount-setup.c
===================================================================
---- git.orig/src/mount-setup.c 2011-08-02 11:28:04.000000000 -0700
-+++ git/src/mount-setup.c 2011-08-02 11:29:52.818915041 -0700
-@@ -172,10 +172,11 @@
+--- git.orig/src/mount-setup.c 2011-09-18 19:16:53.000000000 -0700
++++ git/src/mount-setup.c 2011-09-18 19:40:14.635725954 -0700
+@@ -182,10 +182,10 @@
+ (void) fgets(buf, sizeof(buf), f);
for (;;) {
- MountPoint p;
-- char *controller, *where;
+- char *controller;
+ char controller[30];
-+ char *where;
- int enabled = false;
+ int enabled = 0;
- if (fscanf(f, "%ms %*i %*i %i", &controller, &enabled) != 2) {
-+ if (fscanf(f, "%29s %*i %*i %i", controller, &enabled) != 2) {
++ if (fscanf(f, "%s %*i %*i %i", controller, &enabled) != 2) {
if (feof(f))
break;
-@@ -186,12 +187,10 @@
+@@ -196,14 +196,12 @@
}
if (!enabled) {
continue;
}
- if (asprintf(&where, "/sys/fs/cgroup/%s", controller) < 0) {
+ r = set_put(controllers, controller);
+ if (r < 0) {
+ log_error("Failed to add controller to set.");
- free(controller);
- r = -ENOMEM;
goto finish;
}
-@@ -205,7 +204,6 @@
+ }
+@@ -273,7 +271,6 @@
p.fatal = false;
r = mount_one(&p, true);
- free(controller);
free(where);
- if (r < 0)
+ if (r < 0) {
Index: git/src/socket-util.c
===================================================================
---- git.orig/src/socket-util.c 2011-08-02 11:28:04.000000000 -0700
-+++ git/src/socket-util.c 2011-08-02 11:28:16.178773302 -0700
+--- git.orig/src/socket-util.c 2011-09-18 19:16:53.000000000 -0700
++++ git/src/socket-util.c 2011-09-18 19:38:47.205597702 -0700
@@ -192,7 +192,7 @@
int socket_address_parse_netlink(SocketAddress *a, const char *s) {
int family;
Index: git/src/cryptsetup-generator.c
===================================================================
---- git.orig/src/cryptsetup-generator.c 2011-08-02 11:28:04.000000000 -0700
-+++ git/src/cryptsetup-generator.c 2011-08-02 11:28:16.458773716 -0700
-@@ -260,7 +260,7 @@
+--- git.orig/src/cryptsetup-generator.c 2011-09-18 19:16:53.000000000 -0700
++++ git/src/cryptsetup-generator.c 2011-09-18 19:38:47.205597702 -0700
+@@ -263,7 +263,7 @@
for (;;) {
char line[LINE_MAX], *l;
int k;
if (!(fgets(line, sizeof(line), f)))
-@@ -272,7 +272,7 @@
+@@ -275,7 +275,7 @@
if (*l == '#' || *l == 0)
continue;
log_error("Failed to parse /etc/crypttab:%u, ignoring.", n);
r = EXIT_FAILURE;
goto next;
-@@ -281,11 +281,7 @@
+@@ -284,11 +284,7 @@
if (create_disk(name, device, password, options) < 0)
r = EXIT_FAILURE;
finish:
Index: git/src/swap.c
===================================================================
---- git.orig/src/swap.c 2011-08-02 11:28:04.000000000 -0700
-+++ git/src/swap.c 2011-08-02 11:28:16.488773760 -0700
-@@ -1043,11 +1043,12 @@
+--- git.orig/src/swap.c 2011-09-18 19:16:53.000000000 -0700
++++ git/src/swap.c 2011-09-18 19:38:47.205597702 -0700
+@@ -1044,11 +1044,12 @@
(void) fscanf(m->proc_swaps, "%*s %*s %*s %*s %*s\n");
for (i = 1;; i++) {
"%*s " /* type of swap */
"%*s " /* swap size */
"%*s " /* used */
-@@ -1058,12 +1059,10 @@
+@@ -1059,12 +1060,10 @@
break;
log_warning("Failed to parse /proc/swaps:%u.", i);
return -ENOMEM;
Index: git/src/tmpfiles.c
===================================================================
---- git.orig/src/tmpfiles.c 2011-08-02 11:28:04.000000000 -0700
-+++ git/src/tmpfiles.c 2011-08-02 11:28:16.488773760 -0700
+--- git.orig/src/tmpfiles.c 2011-09-18 19:16:53.000000000 -0700
++++ git/src/tmpfiles.c 2011-09-18 19:38:47.205597702 -0700
@@ -67,7 +67,7 @@
typedef struct Item {
char type;
Index: git/src/mount.c
===================================================================
---- git.orig/src/mount.c 2011-08-02 11:28:04.000000000 -0700
-+++ git/src/mount.c 2011-08-02 11:28:16.488773760 -0700
+--- git.orig/src/mount.c 2011-09-18 19:16:53.000000000 -0700
++++ git/src/mount.c 2011-09-18 19:38:47.215597732 -0700
@@ -24,6 +24,7 @@
#include <mntent.h>
#include <sys/epoll.h>
#include "unit.h"
#include "mount.h"
-@@ -1555,7 +1556,13 @@
+@@ -1556,7 +1557,13 @@
static int mount_load_proc_self_mountinfo(Manager *m, bool set_flags) {
int r = 0;
unsigned i;
assert(m);
-@@ -1564,26 +1571,26 @@
+@@ -1565,26 +1572,26 @@
for (i = 1;; i++) {
int k;
if (k == EOF)
break;
-@@ -1607,22 +1614,12 @@
+@@ -1608,22 +1615,12 @@
r = k;
clean_up:
free(o);
Index: git/src/umount.c
===================================================================
---- git.orig/src/umount.c 2011-08-02 11:28:04.000000000 -0700
-+++ git/src/umount.c 2011-08-02 11:28:16.498773772 -0700
+--- git.orig/src/umount.c 2011-09-18 19:16:53.000000000 -0700
++++ git/src/umount.c 2011-09-18 19:38:47.215597732 -0700
@@ -60,7 +60,9 @@
static int mount_points_list_get(MountPoint **head) {