]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
fuse2fs: redirect all messages when FUSE2FS_LOGFILE is set
authorDarrick J. Wong <djwong@kernel.org>
Thu, 24 Apr 2025 21:40:00 +0000 (14:40 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 21 May 2025 14:19:23 +0000 (10:19 -0400)
If the user sets FUSE2FS_LOGFILE, redirect all debug messages and error
reports to that file.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Link: https://lore.kernel.org/r/174553064545.1160047.7348261379704899161.stgit@frogsfrogsfrogs
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/fuse2fs.c

index 3648044d2c707cc86315c73d5d60f65bac7bb2c4..686643e1a56e88813ecc1bfc4c5c3d10b056cb34 100644 (file)
@@ -3856,6 +3856,7 @@ int main(int argc, char *argv[])
                        goto out;
                }
                stderr = fp;
+               stdout = fp;
        }
 
        /* Will we allow users to allocate every last block? */