Should have been part of r24552 (replaced FS_WRITE_STAT_* constants with

the B_STAT_* constants as found in NodeMonitor.h).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24553 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2008-03-24 12:06:28 +00:00
parent 5e2ef462ec
commit 04a969c8cf
@@ -1,6 +1,6 @@
// kernel_interface.cpp
//
// Copyright (c) 2003, Axel Dörfler ([email protected])
// Copyright (c) 2003-2008, Axel Dörfler ([email protected])
// Copyright (c) 2003, Ingo Weinhold ([email protected])
//
// This program is free software; you can redistribute it and/or modify
@@ -700,25 +700,25 @@ ramfs_write_stat(fs_volume fs, fs_vnode _node, const struct stat *st,
// check permissions
error = node->CheckPermissions(ACCESS_W);
// size
if (error == B_OK && (mask & FS_WRITE_STAT_SIZE))
if (error == B_OK && (mask & B_STAT_SIZE))
error = node->SetSize(st->st_size);
if (error == B_OK) {
// permissions
if (mask & FS_WRITE_STAT_MODE) {
if (mask & B_STAT_MODE) {
node->SetMode(node->GetMode() & ~S_IUMSK
| st->st_mode & S_IUMSK);
| st->st_mode & S_IUMSK);
}
// UID
if (mask & FS_WRITE_STAT_UID)
if (mask & B_STAT_UID)
node->SetUID(st->st_uid);
// GID
if (mask & FS_WRITE_STAT_GID)
if (mask & B_STAT_GID)
node->SetGID(st->st_gid);
// mtime
if (mask & FS_WRITE_STAT_MTIME)
if (mask & B_STAT_MODIFICATION_TIME)
node->SetMTime(st->st_mtime);
// crtime
if (mask & FS_WRITE_STAT_CRTIME)
if (mask & B_STAT_CREATION_TIME)
node->SetCrTime(st->st_crtime);
}
// notify listeners