public inbox for cygwin-apps-cvs@sourceware.org
help / color / mirror / Atom feed
From: yselkowitz@sourceware.org
To: cygwin-apps-cvs@sourceware.org
Subject: [login - The unix login(1), tweaked for Cygwin] branch master, updated. 20f203f01d2797f6d463076807078eec0220a559
Date: Fri, 22 Dec 2017 02:33:00 -0000	[thread overview]
Message-ID: <20171222023356.5451.qmail@sourceware.org> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2427 bytes --]




https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/login.git;h=20f203f01d2797f6d463076807078eec0220a559

commit 20f203f01d2797f6d463076807078eec0220a559
Author: Yaakov Selkowitz <yselkowi@redhat.com>
Date:   Thu Dec 21 20:33:45 2017 -0600

    Add meson build infrastructure

https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/login.git;h=9055b2bd45ea1e9055b345664dc5424e4f6f1d3c

commit 9055b2bd45ea1e9055b345664dc5424e4f6f1d3c
Author: Yaakov Selkowitz <yselkowi@redhat.com>
Date:   Thu Dec 21 20:31:19 2017 -0600

    Fix implicit declarations
    
    test_winsec.c:53:10: warning: implicit declaration of function ‘isprint’
    winpriv.c:189:9: warning: implicit declaration of function ‘stricmp’


Diff:
---
 meson.build   |   22 ++++++++++++++++++++++
 test_winsec.c |    1 +
 winpriv.c     |    2 +-
 3 files changed, 24 insertions(+), 1 deletions(-)

diff --git a/meson.build b/meson.build
new file mode 100644
index 0000000..d10004f
--- /dev/null
+++ b/meson.build
@@ -0,0 +1,22 @@
+project('login', 'c',
+        version: '1.11')
+
+cc = meson.get_compiler('c')
+netapi32 = cc.find_library('netapi32')
+
+login_srcs = files('login.c', 'winpriv.c', 'winsec.c')
+login = executable('login', login_srcs,
+                   dependencies: netapi32,
+                   install: true)
+
+lastlog_srcs = files('lastlog.c')
+lastlog = executable('lastlog', lastlog_srcs,
+                     install: true)
+
+mans = files('login.1', 'lastlog.8')
+install_man(mans)
+
+test_winsec_srcs = files('test_winsec.c', 'winsec.c')
+test_winsec = executable('test_winsec', test_winsec_srcs,
+                         dependencies: netapi32)
+test('winsec', test_winsec)
diff --git a/test_winsec.c b/test_winsec.c
index 1e1f895..b6ace0a 100644
--- a/test_winsec.c
+++ b/test_winsec.c
@@ -3,6 +3,7 @@
 #include <syslog.h>
 #include <getopt.h>
 #include <errno.h>
+#include <ctype.h>
 
 extern int currentUserIsLocalSystem ();
 extern int currentUserIsMemberOfLocalAdministrators ();
diff --git a/winpriv.c b/winpriv.c
index a2aa904..8d9237e 100644
--- a/winpriv.c
+++ b/winpriv.c
@@ -186,7 +186,7 @@ testUserRights (LSA_HANDLE hLSA, const char *strUser,
       rightname[wcsrtombs (rightname, &src, len, &mbst)] = '\0';
       for (d = 0; d < intRightsToTestCount; d++)
 	{
-	  if (!stricmp (rightname, strRightsToTest[d]))
+	  if (!strcasecmp (rightname, strRightsToTest[d]))
 	    intMatched++;
 	}
     }


                 reply	other threads:[~2017-12-22  2:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171222023356.5451.qmail@sourceware.org \
    --to=yselkowitz@sourceware.org \
    --cc=cygwin-apps-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).