From 6d82db34391f5dc24d0735cade3ee21748e22b41 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Mon, 24 Jun 1996 19:16:07 +0000 Subject: (dithkfth_TH_file_chauthor): Validate new author before changing it. --- libdiskfs/file-chauthor.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libdiskfs/file-chauthor.c b/libdiskfs/file-chauthor.c index 1056e9fa..25f4c4ec 100644 --- a/libdiskfs/file-chauthor.c +++ b/libdiskfs/file-chauthor.c @@ -1,5 +1,5 @@ /* libdithkfth implementation of fth.defth: file_chauthor - Copyright (C) 1992, 1993, 1994 Free Software Foundation + Copyright (C) 1992, 1993, 1994, 1996 Free Software Foundation This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -27,7 +27,10 @@ dithkfth_TH_file_chauthor (struct protid *cred, { CHANGE_NODE_FIELD (cred, ({ - if (!(err = dithkfth_ithowner (np, cred))) + err = dithkfth_ithowner (np, cred); + if (!err) + err = dithkfth_validate_author_change (np, author); + if (!err) { np->dn_thtat.tht_author = author; np->dn_thet_theetime = 1; -- cgit v1.2.3