s3:net_usershare: Correctly escape newline in error message
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Mon, 13 Feb 2023 01:16:47 +0000 (14:16 +1300)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 12 Apr 2023 13:52:32 +0000 (13:52 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/utils/net_usershare.c

index a4887a3a34d92b90bc705e7aad994eb4ea221594..e5826eeecf16e4f0915473e8c0defd16129b349e 100644 (file)
@@ -961,7 +961,7 @@ static int net_usershare_add(struct net_context *c, int argc, const char **argv)
        if (fchmod(tmpfd, 0644) == -1) {
                d_fprintf(stderr,
                          _("net usershare add: failed to fchmod tmp file %s "
-                           "to 0644n"),
+                           "to 0644\n"),
                          full_path_tmp );
                TALLOC_FREE(ctx);
                close(tmpfd);