~ubuntu-branches/ubuntu/utopic/btrfs-tools/utopic-proposed

« back to all changes in this revision

Viewing changes to restore.c

  • Committer: Package Import Robot
  • Author(s): Dmitrijs Ledkovs
  • Date: 2013-02-11 13:27:15 UTC
  • mfrom: (1.1.11)
  • Revision ID: package-import@ubuntu.com-20130211132715-h04yfy61mf7scqfr
Tags: 0.19+20130117-0ubuntu1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
#define _XOPEN_SOURCE 500
20
20
#define _GNU_SOURCE 1
 
21
 
 
22
#include "kerncompat.h"
 
23
 
21
24
#include <ctype.h>
22
25
#include <stdio.h>
23
26
#include <stdlib.h>
25
28
#include <fcntl.h>
26
29
#include <sys/stat.h>
27
30
#include <zlib.h>
28
 
#include "kerncompat.h"
 
31
 
29
32
#include "ctree.h"
30
33
#include "disk-io.h"
31
34
#include "print-tree.h"
827
830
                        strerror(ret));
828
831
                return ret;
829
832
        } else if (ret) {
830
 
                fprintf(stderr, "%s is currently mounted.  Aborting.\n", argv[optind + 1]);
 
833
                fprintf(stderr, "%s is currently mounted.  Aborting.\n", argv[optind]);
831
834
                return -EBUSY;
832
835
        }
833
836