From 7f8c8b3dcd3a83e461cc689c7c948e02a33a9618 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 5 Sep 2012 09:59:45 +0200 Subject: [PATCH] xbps-create: remove trailing whitespace. (cherry picked from commit d139420576328084255f0145c5cfea3ad2d1367a) --- bin/xbps-create/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/xbps-create/main.c b/bin/xbps-create/main.c index 49817933..540f5f98 100644 --- a/bin/xbps-create/main.c +++ b/bin/xbps-create/main.c @@ -182,7 +182,7 @@ ftw_cb(const char *fpath, const struct stat *sb, int type, struct FTW *ftwbuf) assert(xe); xe->file = strdup(fpath); assert(xe->file); - + if ((strcmp(fpath, "./INSTALL") == 0) || (strcmp(fpath, "./REMOVE") == 0)) { /* metadata file */ @@ -202,7 +202,7 @@ ftw_cb(const char *fpath, const struct stat *sb, int type, struct FTW *ftwbuf) memset(&buf, 0, sizeof(buf)); if (realpath(fpath, buf) == NULL) die("failed to process symlink `%s':", filep); - + filep = buf + strlen(destdir); xe->target = strdup(filep); assert(xe->target); @@ -212,7 +212,7 @@ ftw_cb(const char *fpath, const struct stat *sb, int type, struct FTW *ftwbuf) * Find out if it's a configuration file or not * and calculate sha256 hash. */ - if (entry_is_conf_file(filep)) + if (entry_is_conf_file(filep)) xe->type = strdup("conf_files"); else xe->type = strdup("files");