Dirk Mueller
a0e284e535
- add scrub subcommand - scan /proc/partitions by default (or use --all-devices for all) - mkfs fixes and improvements - documentation fixes - update from git: - add btrfs-select-super utility - add btrfs-label utility - allow mixed data+metadata (option --mixed) - allow populating new filesystem with files (option --rootdir) - allow discard support in mkfs - lzo support - deprecate 'btrfsctl' 'btrfs-vol' 'btrfs-show' - other bugfixes and documentation improvements OBS-URL: https://build.opensuse.org/package/show/filesystems/btrfsprogs?expand=0&rev=104
30 lines
859 B
Diff
30 lines
859 B
Diff
From 3295594b099c06935f5299c8234effeeeeea5d11 Mon Sep 17 00:00:00 2001
|
|
From: Hugo Mills <hugo@carfax.org.uk>
|
|
Date: Sun, 12 Jun 2011 21:52:39 +0100
|
|
Subject: [PATCH 13/28] btrfs-progs: Fix over-sized limit on buffer
|
|
|
|
gcc-4.4 complains (rightly) that the strncpy has a limit too large for
|
|
the array it's copying into. Use the correct array length.
|
|
|
|
Signed-off-by: Hugo Mills <hugo@carfax.org.uk>
|
|
---
|
|
btrfs_cmds.c | 2 +-
|
|
1 files changed, 1 insertions(+), 1 deletions(-)
|
|
|
|
diff --git a/btrfs_cmds.c b/btrfs_cmds.c
|
|
index 505322d..da5bd91 100644
|
|
--- a/btrfs_cmds.c
|
|
+++ b/btrfs_cmds.c
|
|
@@ -427,7 +427,7 @@ int do_clone(int argc, char **argv)
|
|
}
|
|
|
|
args.fd = fd;
|
|
- strncpy(args.name, newname, BTRFS_PATH_NAME_MAX);
|
|
+ strncpy(args.name, newname, BTRFS_SUBVOL_NAME_MAX);
|
|
res = ioctl(fddst, BTRFS_IOC_SNAP_CREATE_V2, &args);
|
|
e = errno;
|
|
|
|
--
|
|
1.7.5.2.353.g5df3e
|
|
|