Patches for Solaris 8 compile

Toomas Soome tsoome at ut.ee
Mon Mar 5 18:47:33 GMT 2001


On Mon, 5 Mar 2001, Jeremy Allison wrote:

> On Mon, Mar 05, 2001 at 01:24:29PM -0500, Steven Campbell wrote:
> > Hi, had problems getting samba-2.2.0-alpha2 to build under Solaris 8.
> >
> > Can I send a context diff to the list, or is there a smarter place I
> > should send it?
>
> Anything sent to samba-patches is good (in case anyone complains
> that no one looks at samba-patches, let me inform you that *all*
> samba-patches mail ends up also in my inbox, where I *definately*
> look at it :-).
>
> Sending a copy to this list is also good so long as the
> patches aren't too large.
>

ok, how about my patch for smbd/connections.c to deal with wtmpx logging
problem with solaris? the problem itself is clean and simple - finger, who
etc are looking for /dev/smb/connection_number and they fail, because
there is no such file. I have posted patch several times... :)

anyway, I'll post it here again, its against 2_2:

Index: smbd/connection.c
===================================================================
RCS file: /cvsroot/samba/source/smbd/connection.c,v
retrieving revision 1.20.4.6
diff -u -r1.20.4.6 connection.c
--- smbd/connection.c   2001/03/01 02:12:48     1.20.4.6
+++ smbd/connection.c   2001/03/05 18:46:10
@@ -758,6 +758,22 @@
 #endif /* HAVE_UPDWTMPX */
        }
 #endif /* HAVE_UTMPX_H */
+/*
+ * Test and create /dev/ut_line. this will be symlink to /dev/null.
+ * this is needed for finger and others... TS.
+ *
+ */
+#if !defined(__FreeBSD__)
+       if (claim) {
+         pstring line_tmp;
+          slprintf(line_tmp, sizeof(line_tmp), "/dev/%s", u->ut_line);
+         DEBUG(2,("utmp_update: terminal path: %s\n", line_tmp));
+         mkdir("/dev/smb", 0755);
+         unlink(line_tmp);
+         symlink( "/dev/null", line_tmp);
+         utime(line_tmp, NULL); /* touch line to make user "current" */
+       }
+#endif
 }

 /*


toomas
-- 
You will have a head crash on your private pack.





More information about the samba-technical mailing list