]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix grow.c
authorKern Sibbald <kern@sibbald.com>
Sat, 21 Jul 2007 18:45:08 +0000 (18:45 +0000)
committerKern Sibbald <kern@sibbald.com>
Sat, 21 Jul 2007 18:45:08 +0000 (18:45 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5212 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/tools/grow.c

index 3736acaf03abed952c5f4cd15c79b0d4e0783093..33486b8a0f2665c2c2750b2fc41a41c21982a977 100644 (file)
@@ -43,7 +43,7 @@ int main(int argc, char *argv[])
       exit(1);
    }
    howBig = str_to_int64(argv[2]);
-   fp = fopen(argv[1], "w+");
+   fp = fopen(argv[1], "r+");
    if (!fp) {
       berrno be;
       Pmsg2(0, "Could not open %s for write. ERR=%s\n", argv[1], be.bstrerror());