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:
@@ -1,6 +1,6 @@
|
|||||||
// kernel_interface.cpp
|
// 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])
|
// Copyright (c) 2003, Ingo Weinhold ([email protected])
|
||||||
//
|
//
|
||||||
// This program is free software; you can redistribute it and/or modify
|
// 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
|
// check permissions
|
||||||
error = node->CheckPermissions(ACCESS_W);
|
error = node->CheckPermissions(ACCESS_W);
|
||||||
// size
|
// size
|
||||||
if (error == B_OK && (mask & FS_WRITE_STAT_SIZE))
|
if (error == B_OK && (mask & B_STAT_SIZE))
|
||||||
error = node->SetSize(st->st_size);
|
error = node->SetSize(st->st_size);
|
||||||
if (error == B_OK) {
|
if (error == B_OK) {
|
||||||
// permissions
|
// permissions
|
||||||
if (mask & FS_WRITE_STAT_MODE) {
|
if (mask & B_STAT_MODE) {
|
||||||
node->SetMode(node->GetMode() & ~S_IUMSK
|
node->SetMode(node->GetMode() & ~S_IUMSK
|
||||||
| st->st_mode & S_IUMSK);
|
| st->st_mode & S_IUMSK);
|
||||||
}
|
}
|
||||||
// UID
|
// UID
|
||||||
if (mask & FS_WRITE_STAT_UID)
|
if (mask & B_STAT_UID)
|
||||||
node->SetUID(st->st_uid);
|
node->SetUID(st->st_uid);
|
||||||
// GID
|
// GID
|
||||||
if (mask & FS_WRITE_STAT_GID)
|
if (mask & B_STAT_GID)
|
||||||
node->SetGID(st->st_gid);
|
node->SetGID(st->st_gid);
|
||||||
// mtime
|
// mtime
|
||||||
if (mask & FS_WRITE_STAT_MTIME)
|
if (mask & B_STAT_MODIFICATION_TIME)
|
||||||
node->SetMTime(st->st_mtime);
|
node->SetMTime(st->st_mtime);
|
||||||
// crtime
|
// crtime
|
||||||
if (mask & FS_WRITE_STAT_CRTIME)
|
if (mask & B_STAT_CREATION_TIME)
|
||||||
node->SetCrTime(st->st_crtime);
|
node->SetCrTime(st->st_crtime);
|
||||||
}
|
}
|
||||||
// notify listeners
|
// notify listeners
|
||||||
|
|||||||
Reference in New Issue
Block a user