~ubuntu-branches/debian/jessie/btrfs-tools/jessie

« back to all changes in this revision

Viewing changes to debian/patches/0004-Default-to-acting-like-fsck.patch

  • Committer: Package Import Robot
  • Author(s): Dimitri John Ledkov
  • Date: 2014-04-19 12:12:11 UTC
  • mfrom: (1.2.12) (6.1.37 sid)
  • Revision ID: package-import@ubuntu.com-20140419121211-mski0g757tsdv4x1
Tags: 3.14.1-1
* New upstream release.
* Switch to git-dpm.
* Rebase and cleanup patches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
From b046e44a7f444b1150ce765512dd56a6505229b2 Mon Sep 17 00:00:00 2001
 
2
From: Dimitri John Ledkov <xnox@debian.org>
 
3
Date: Sat, 19 Apr 2014 12:10:15 +0100
 
4
Subject: Default to acting like fsck.
 
5
 
 
6
Inspect arguments, if we are not called as btrfs, then assume we are
 
7
called to act like fsck.
 
8
 
 
9
Bug-Debian: http://bugs.debian.org/712078
 
10
Signed-off-by: Dimitri John Ledkov <xnox@debian.org>
 
11
---
 
12
 btrfs.c | 2 +-
 
13
 1 file changed, 1 insertion(+), 1 deletion(-)
 
14
 
 
15
diff --git a/btrfs.c b/btrfs.c
 
16
index f8b87af..adbd668 100644
 
17
--- a/btrfs.c
 
18
+++ b/btrfs.c
 
19
@@ -261,7 +261,7 @@ int main(int argc, char **argv)
 
20
        else
 
21
                bname = argv[0];
 
22
 
 
23
-       if (!strcmp(bname, "btrfsck")) {
 
24
+       if (strcmp(bname, "btrfs") != 0) {
 
25
                argv[0] = "check";
 
26
        } else {
 
27
                argc--;