Displaying 4 results from an estimated 4 matches for "2d9d4b52".
2019 Jan 25
0
[klibc:update-dash] [CD] support drive letters on Cygwin
...ed-off-by: Eric Blake <eblake at redhat.com>
Signed-off-by: Herbert Xu <herbert at gondor.apana.org.au>
Signed-off-by: Ben Hutchings <ben at decadent.org.uk>
---
usr/dash/cd.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/usr/dash/cd.c b/usr/dash/cd.c
index 2d9d4b52..a4e024d8 100644
--- a/usr/dash/cd.c
+++ b/usr/dash/cd.c
@@ -38,6 +38,9 @@
#include <string.h>
#include <unistd.h>
#include <limits.h>
+#ifdef __CYGWIN__
+#include <sys/cygwin.h>
+#endif
/*
* The cd and pwd commands.
@@ -194,6 +197,17 @@ updatepwd(const char *dir)...
2020 Mar 28
0
[klibc:update-dash] dash: [CD] support drive letters on Cygwin
...ed-off-by: Eric Blake <eblake at redhat.com>
Signed-off-by: Herbert Xu <herbert at gondor.apana.org.au>
Signed-off-by: Ben Hutchings <ben at decadent.org.uk>
---
usr/dash/cd.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/usr/dash/cd.c b/usr/dash/cd.c
index 2d9d4b52..a4e024d8 100644
--- a/usr/dash/cd.c
+++ b/usr/dash/cd.c
@@ -38,6 +38,9 @@
#include <string.h>
#include <unistd.h>
#include <limits.h>
+#ifdef __CYGWIN__
+#include <sys/cygwin.h>
+#endif
/*
* The cd and pwd commands.
@@ -194,6 +197,17 @@ updatepwd(const char *dir)...
2019 Jan 25
0
[klibc:update-dash] dash: Fix some cosmetic differences from upstream dash
...ic char *getstr(void);
static char *mklong(const char *, const char *);
static void check_conversion(const char *, const char *);
-#ifdef HAVE_STRTOD
-static double getdouble(void);
-#endif
static int rval;
static char **gargv;
diff --git a/usr/dash/cd.c b/usr/dash/cd.c
index 89c6c30c..2d9d4b52 100644
--- a/usr/dash/cd.c
+++ b/usr/dash/cd.c
@@ -254,13 +254,16 @@ getpwd()
{
#ifdef __GLIBC__
char *dir = getcwd(0, 0);
+
if (dir)
return dir;
#else
char buf[PATH_MAX];
- if(getcwd(buf, sizeof(buf)))
+
+ if (getcwd(buf, sizeof(buf)))
return savestr(buf);
#endif
+
sh_warnx("...
2020 Mar 28
0
[klibc:update-dash] dash: Fix some cosmetic differences from upstream dash
...ic char *getstr(void);
static char *mklong(const char *, const char *);
static void check_conversion(const char *, const char *);
-#ifdef HAVE_STRTOD
-static double getdouble(void);
-#endif
static int rval;
static char **gargv;
diff --git a/usr/dash/cd.c b/usr/dash/cd.c
index 89c6c30c..2d9d4b52 100644
--- a/usr/dash/cd.c
+++ b/usr/dash/cd.c
@@ -254,13 +254,16 @@ getpwd()
{
#ifdef __GLIBC__
char *dir = getcwd(0, 0);
+
if (dir)
return dir;
#else
char buf[PATH_MAX];
- if(getcwd(buf, sizeof(buf)))
+
+ if (getcwd(buf, sizeof(buf)))
return savestr(buf);
#endif
+
sh_warnx("...