Skip to content

Instantly share code, notes, and snippets.

@jwodder
Created May 8, 2011 19:06
Show Gist options
  • Save jwodder/961599 to your computer and use it in GitHub Desktop.
Save jwodder/961599 to your computer and use it in GitHub Desktop.
A patch to commit 9fcd797d of xattr for separating all attribute listings with blank lines
diff --git xattr.c xattr.c
index 41d2fbd..1f297e9 100644
--- xattr.c
+++ xattr.c
@@ -60,10 +60,10 @@ int main(int argc, char** argv) {
free(value);
}
putchar('\n');
+ putchar('\n');
}
if (attrs[0]) free(attrs[0]);
free(attrs);
- putchar('\n');
}
} else {
if (optind == argc-1) {usage(0); return 2; }
@@ -86,6 +86,7 @@ int main(int argc, char** argv) {
free(value);
}
putchar('\n');
+ putchar('\n');
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment