mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-30 00:50:00 +00:00
systemd: Refresh format-replace-m-uclibc patch
This patch was not applying so we adjust it to the new changes in uclibc sources. Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
This commit is contained in:
@@ -9,23 +9,22 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|||||||
|
|
||||||
Index: git/src/mount-setup.c
|
Index: git/src/mount-setup.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- git.orig/src/mount-setup.c 2011-08-02 11:28:04.000000000 -0700
|
--- git.orig/src/mount-setup.c 2011-09-18 19:16:53.000000000 -0700
|
||||||
+++ git/src/mount-setup.c 2011-08-02 11:29:52.818915041 -0700
|
+++ git/src/mount-setup.c 2011-09-18 19:40:14.635725954 -0700
|
||||||
@@ -172,10 +172,11 @@
|
@@ -182,10 +182,10 @@
|
||||||
|
(void) fgets(buf, sizeof(buf), f);
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
MountPoint p;
|
- char *controller;
|
||||||
- char *controller, *where;
|
|
||||||
+ char controller[30];
|
+ char controller[30];
|
||||||
+ char *where;
|
int enabled = 0;
|
||||||
int enabled = false;
|
|
||||||
|
|
||||||
- if (fscanf(f, "%ms %*i %*i %i", &controller, &enabled) != 2) {
|
- 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))
|
if (feof(f))
|
||||||
break;
|
break;
|
||||||
@@ -186,12 +187,10 @@
|
@@ -196,14 +196,12 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!enabled) {
|
if (!enabled) {
|
||||||
@@ -33,23 +32,25 @@ Index: git/src/mount-setup.c
|
|||||||
continue;
|
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);
|
- free(controller);
|
||||||
r = -ENOMEM;
|
|
||||||
goto finish;
|
goto finish;
|
||||||
}
|
}
|
||||||
@@ -205,7 +204,6 @@
|
}
|
||||||
|
@@ -273,7 +271,6 @@
|
||||||
p.fatal = false;
|
p.fatal = false;
|
||||||
|
|
||||||
r = mount_one(&p, true);
|
r = mount_one(&p, true);
|
||||||
- free(controller);
|
- free(controller);
|
||||||
free(where);
|
free(where);
|
||||||
|
|
||||||
if (r < 0)
|
if (r < 0) {
|
||||||
Index: git/src/socket-util.c
|
Index: git/src/socket-util.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- git.orig/src/socket-util.c 2011-08-02 11:28:04.000000000 -0700
|
--- git.orig/src/socket-util.c 2011-09-18 19:16:53.000000000 -0700
|
||||||
+++ git/src/socket-util.c 2011-08-02 11:28:16.178773302 -0700
|
+++ git/src/socket-util.c 2011-09-18 19:38:47.205597702 -0700
|
||||||
@@ -192,7 +192,7 @@
|
@@ -192,7 +192,7 @@
|
||||||
int socket_address_parse_netlink(SocketAddress *a, const char *s) {
|
int socket_address_parse_netlink(SocketAddress *a, const char *s) {
|
||||||
int family;
|
int family;
|
||||||
@@ -80,9 +81,9 @@ Index: git/src/socket-util.c
|
|||||||
|
|
||||||
Index: git/src/cryptsetup-generator.c
|
Index: git/src/cryptsetup-generator.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- git.orig/src/cryptsetup-generator.c 2011-08-02 11:28:04.000000000 -0700
|
--- git.orig/src/cryptsetup-generator.c 2011-09-18 19:16:53.000000000 -0700
|
||||||
+++ git/src/cryptsetup-generator.c 2011-08-02 11:28:16.458773716 -0700
|
+++ git/src/cryptsetup-generator.c 2011-09-18 19:38:47.205597702 -0700
|
||||||
@@ -260,7 +260,7 @@
|
@@ -263,7 +263,7 @@
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
char line[LINE_MAX], *l;
|
char line[LINE_MAX], *l;
|
||||||
@@ -91,7 +92,7 @@ Index: git/src/cryptsetup-generator.c
|
|||||||
int k;
|
int k;
|
||||||
|
|
||||||
if (!(fgets(line, sizeof(line), f)))
|
if (!(fgets(line, sizeof(line), f)))
|
||||||
@@ -272,7 +272,7 @@
|
@@ -275,7 +275,7 @@
|
||||||
if (*l == '#' || *l == 0)
|
if (*l == '#' || *l == 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
@@ -100,7 +101,7 @@ Index: git/src/cryptsetup-generator.c
|
|||||||
log_error("Failed to parse /etc/crypttab:%u, ignoring.", n);
|
log_error("Failed to parse /etc/crypttab:%u, ignoring.", n);
|
||||||
r = EXIT_FAILURE;
|
r = EXIT_FAILURE;
|
||||||
goto next;
|
goto next;
|
||||||
@@ -281,11 +281,7 @@
|
@@ -284,11 +284,7 @@
|
||||||
if (create_disk(name, device, password, options) < 0)
|
if (create_disk(name, device, password, options) < 0)
|
||||||
r = EXIT_FAILURE;
|
r = EXIT_FAILURE;
|
||||||
|
|
||||||
@@ -115,9 +116,9 @@ Index: git/src/cryptsetup-generator.c
|
|||||||
finish:
|
finish:
|
||||||
Index: git/src/swap.c
|
Index: git/src/swap.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- git.orig/src/swap.c 2011-08-02 11:28:04.000000000 -0700
|
--- git.orig/src/swap.c 2011-09-18 19:16:53.000000000 -0700
|
||||||
+++ git/src/swap.c 2011-08-02 11:28:16.488773760 -0700
|
+++ git/src/swap.c 2011-09-18 19:38:47.205597702 -0700
|
||||||
@@ -1043,11 +1043,12 @@
|
@@ -1044,11 +1044,12 @@
|
||||||
(void) fscanf(m->proc_swaps, "%*s %*s %*s %*s %*s\n");
|
(void) fscanf(m->proc_swaps, "%*s %*s %*s %*s %*s\n");
|
||||||
|
|
||||||
for (i = 1;; i++) {
|
for (i = 1;; i++) {
|
||||||
@@ -132,7 +133,7 @@ Index: git/src/swap.c
|
|||||||
"%*s " /* type of swap */
|
"%*s " /* type of swap */
|
||||||
"%*s " /* swap size */
|
"%*s " /* swap size */
|
||||||
"%*s " /* used */
|
"%*s " /* used */
|
||||||
@@ -1058,12 +1059,10 @@
|
@@ -1059,12 +1060,10 @@
|
||||||
break;
|
break;
|
||||||
|
|
||||||
log_warning("Failed to parse /proc/swaps:%u.", i);
|
log_warning("Failed to parse /proc/swaps:%u.", i);
|
||||||
@@ -147,8 +148,8 @@ Index: git/src/swap.c
|
|||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
Index: git/src/tmpfiles.c
|
Index: git/src/tmpfiles.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- git.orig/src/tmpfiles.c 2011-08-02 11:28:04.000000000 -0700
|
--- git.orig/src/tmpfiles.c 2011-09-18 19:16:53.000000000 -0700
|
||||||
+++ git/src/tmpfiles.c 2011-08-02 11:28:16.488773760 -0700
|
+++ git/src/tmpfiles.c 2011-09-18 19:38:47.205597702 -0700
|
||||||
@@ -67,7 +67,7 @@
|
@@ -67,7 +67,7 @@
|
||||||
typedef struct Item {
|
typedef struct Item {
|
||||||
char type;
|
char type;
|
||||||
@@ -216,8 +217,8 @@ Index: git/src/tmpfiles.c
|
|||||||
|
|
||||||
Index: git/src/mount.c
|
Index: git/src/mount.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- git.orig/src/mount.c 2011-08-02 11:28:04.000000000 -0700
|
--- git.orig/src/mount.c 2011-09-18 19:16:53.000000000 -0700
|
||||||
+++ git/src/mount.c 2011-08-02 11:28:16.488773760 -0700
|
+++ git/src/mount.c 2011-09-18 19:38:47.215597732 -0700
|
||||||
@@ -24,6 +24,7 @@
|
@@ -24,6 +24,7 @@
|
||||||
#include <mntent.h>
|
#include <mntent.h>
|
||||||
#include <sys/epoll.h>
|
#include <sys/epoll.h>
|
||||||
@@ -226,7 +227,7 @@ Index: git/src/mount.c
|
|||||||
|
|
||||||
#include "unit.h"
|
#include "unit.h"
|
||||||
#include "mount.h"
|
#include "mount.h"
|
||||||
@@ -1555,7 +1556,13 @@
|
@@ -1556,7 +1557,13 @@
|
||||||
static int mount_load_proc_self_mountinfo(Manager *m, bool set_flags) {
|
static int mount_load_proc_self_mountinfo(Manager *m, bool set_flags) {
|
||||||
int r = 0;
|
int r = 0;
|
||||||
unsigned i;
|
unsigned i;
|
||||||
@@ -241,7 +242,7 @@ Index: git/src/mount.c
|
|||||||
|
|
||||||
assert(m);
|
assert(m);
|
||||||
|
|
||||||
@@ -1564,26 +1571,26 @@
|
@@ -1565,26 +1572,26 @@
|
||||||
for (i = 1;; i++) {
|
for (i = 1;; i++) {
|
||||||
int k;
|
int k;
|
||||||
|
|
||||||
@@ -279,7 +280,7 @@ Index: git/src/mount.c
|
|||||||
|
|
||||||
if (k == EOF)
|
if (k == EOF)
|
||||||
break;
|
break;
|
||||||
@@ -1607,22 +1614,12 @@
|
@@ -1608,22 +1615,12 @@
|
||||||
r = k;
|
r = k;
|
||||||
|
|
||||||
clean_up:
|
clean_up:
|
||||||
@@ -304,8 +305,8 @@ Index: git/src/mount.c
|
|||||||
free(o);
|
free(o);
|
||||||
Index: git/src/umount.c
|
Index: git/src/umount.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- git.orig/src/umount.c 2011-08-02 11:28:04.000000000 -0700
|
--- git.orig/src/umount.c 2011-09-18 19:16:53.000000000 -0700
|
||||||
+++ git/src/umount.c 2011-08-02 11:28:16.498773772 -0700
|
+++ git/src/umount.c 2011-09-18 19:38:47.215597732 -0700
|
||||||
@@ -60,7 +60,9 @@
|
@@ -60,7 +60,9 @@
|
||||||
|
|
||||||
static int mount_points_list_get(MountPoint **head) {
|
static int mount_points_list_get(MountPoint **head) {
|
||||||
|
|||||||
Reference in New Issue
Block a user