Skip to content

setenv/putenv errors

Erik Faye-Lund git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest4 patches 4 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4compat/setenv.c: update errno when erroring outcompat/setenv.c+8 -20 replies
2/4compat/setenv.c: error if name contains '='compat/setenv.c+1 -10 replies
3/4wrapper: supply xsetenv and xputenvgit-compat-util.h wrapper.c+16 -02 replies
4/4use wrapper for unchecked setenv/putenv callsbuiltin/clone.c builtin/commit.c builtin/help.c +11 more+30 -302 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/4] setenv/putenv errors

Here's v2 of this series. It grew a bit since the last round, as I figured fixing the error-paths in compat/setenv.c made sense to do while I was at it, considering how Windows (which is one of the few likely platforms to be able to actually trigger this issue) use it.

Erik Faye-Lund (4):
compat/setenv.c: update errno when erroring out
compat/setenv.c: error if name contains '='
wrapper: supply xsetenv and xputenv
use wrapper for unchecked setenv/putenv calls

 builtin/clone.c      |    2 +-
 builtin/commit.c     |    6 +++---
 builtin/help.c       |    4 ++--
 builtin/init-db.c    |    2 +-
 builtin/merge.c      |    4 ++--
 builtin/notes.c      |    2 +-
 builtin/remote-ext.c |    4 ++--
 builtin/revert.c     |    2 +-
 compat/setenv.c      |   10 ++++++++--
 config.c             |    2 +-
 exec_cmd.c           |    4 ++--
 git-compat-util.h    |    2 ++
 git.c                |   18 +++++++++---------
 pager.c              |    2 +-
 run-command.c        |    2 +-
 setup.c              |    6 +++---
 wrapper.c            |   14 ++++++++++++++
 17 files changed, 54 insertions(+), 32 deletions(-)
Signature · 1 line
1.7.7.1.msysgit.0.272.g9e47e