my $ntoskrnl=$vardir."/ntoskrnl.exe";
-r $ntoskrnl or die "W32 ntoskrnl.exe not readable: $ntoskrnl";
+
+# Shameless advertisement:
+if ($fsname eq "ntfs") {
+ for my $fh (*STDERR,*STDOUT) {
+ if (-t $fh) {
+ print $fh "Captive NTFS activated. Updates: http://www.jankratochvil.net/project/captive/\n";
+ last;
+ }
+ }
+ }
+
+
# Double-dashes are generally optional here.
$oo=""
.($fsname eq "cdfs" ? "--cdrom,--ro," : "--disk,--rw,")
#include "vfs-slave.h"
#include "init.h"
#include "giochannel-blind.h" /* for captive_giochannel_setup() */
+#include <unistd.h>
+#include <string.h>
static gpointer captive_vfs_object_parent_class=NULL;
g_return_val_if_fail(captive_vfs_object_return!=NULL,GNOME_VFS_ERROR_BAD_PARAMETERS);
g_return_val_if_fail(options!=NULL,GNOME_VFS_ERROR_BAD_PARAMETERS);
+#ifndef MAINTAINER_MODE
+ /* We are not sandboxing || we are the master */
+ if (!options->sandbox || (options->sandbox_server_argv || options->sandbox_server_ior)) {
+int fd;
+
+ /* Shameless advertisement: */
+ for (fd=2 /* STDERR */;fd>=1 /* STDOUT */;fd--) {
+ if (isatty(fd)) {
+const gchar *msg="Captive NTFS activated. Updates: http://www.jankratochvil.net/project/captive/\n";
+
+ write(fd,msg,strlen(msg));
+ break;
+ }
+ }
+ }
+#endif /* !MAINTAINER_MODE */
+
/* Here is the first initializaton point of parent in sandboxed mode. */
captive_log_init(options);