# HG changeset patch # User John W. Eaton # Date 1233880778 18000 # Node ID 6e9887f9cf9f646de4e166f3236279e106c071b0 # Parent ddbe875993314945753a2b3fed6d75d2fa741e0a file-stat.cc: use EXISTS instead of OK in previuos change diff -r ddbe87599331 -r 6e9887f9cf9f liboctave/ChangeLog --- a/liboctave/ChangeLog Thu Feb 05 17:38:24 2009 -0500 +++ b/liboctave/ChangeLog Thu Feb 05 19:39:38 2009 -0500 @@ -1,5 +1,8 @@ 2009-02-05 John W. Eaton + * file-stat.cc (base_file_stat::is_sock): + Use EXISTS instead of OK in previous change. + * file-stat.cc (base_file_stat::is_blk, base_file_stat::is_chr, base_file_stat::is_dir, base_file_stat::is_fifo, base_file_stat::is_lnk, base_file_stat::is_reg, diff -r ddbe87599331 -r 6e9887f9cf9f liboctave/file-stat.cc --- a/liboctave/file-stat.cc Thu Feb 05 17:38:24 2009 -0500 +++ b/liboctave/file-stat.cc Thu Feb 05 19:39:38 2009 -0500 @@ -54,43 +54,43 @@ bool base_file_stat::is_blk (void) const { - return ok () && is_blk (fs_mode); + return exists () && is_blk (fs_mode); } bool base_file_stat::is_chr (void) const { - return ok () && is_chr (fs_mode); + return exists () && is_chr (fs_mode); } bool base_file_stat::is_dir (void) const { - return ok () && is_dir (fs_mode); + return exists () && is_dir (fs_mode); } bool base_file_stat::is_fifo (void) const { - return ok () && is_fifo (fs_mode); + return exists () && is_fifo (fs_mode); } bool base_file_stat::is_lnk (void) const { - return ok () && is_lnk (fs_mode); + return exists () && is_lnk (fs_mode); } bool base_file_stat::is_reg (void) const { - return ok () && is_reg (fs_mode); + return exists () && is_reg (fs_mode); } bool base_file_stat::is_sock (void) const { - return ok () && is_sock (fs_mode); + return exists () && is_sock (fs_mode); } bool